convertCASEpro

MODE

JSON Key Case Converter

Rename every key in nested JSON in one pass, leaving the values alone.

INPUT
CHARS: 0WORDS: 0LINES: 0
OUTPUT
CHARS: 0WORDS: 0LINES: 0

How the JSON Key Case Converter works

A database column set in snake_case rarely matches a JavaScript front end that expects camelCase, and that mismatch is a constant source of small bugs. This tool walks through the whole JSON structure, including objects inside arrays, and converts every key to the target style while leaving values exactly as they were.

Keys are split into words at underscores, hyphens, dots, spaces and camel case boundaries, so any input style works. Runs of capitals, such as in userID, are treated as one word.

When it is useful

  • •Adapting an API response from a snake_case backend for a camelCase front end.
  • •Preparing JSON for a service that expects a different key style.
  • •Normalizing config files and fixtures to one convention.
  • •Converting sample data for documentation.

Frequently Asked Questions

Are string values changed?

No. Only object keys are renamed. Strings, numbers, booleans and null stay as they are.

What if two keys become the same name?

The later one overwrites the earlier one, as in any object. Check for keys that differ only by style, such as user_id and userId.

Can I convert plain identifiers instead?

Yes. Use the camelCase, snake_case, kebab-case, PascalCase and dot.case converters for text and lists.

Related tools

[ Browse all tools ]