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.
JSON Key Case Converter examples
Sample input with the default options
Input
{"first_name":"Ada","home_address":{"street_name":"Main","zip_code":"12345"},"past_jobs":[{"job_title":"Analyst"}]}Result
{ "firstName": "Ada", "homeAddress": { "streetName": "Main", "zipCode": "12345" }, "pastJobs": [ { "jobTitle": "Analyst" } ] }
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.
Guides that use this tool
Related tools
- JSON Formatter and MinifierPaste JSON to validate it and print it neatly, or compress it to a single line.
- camelCase ConverterDedicated case converter with examples and FAQs.
- snake_case ConverterDedicated case converter with examples and FAQs.
- JSON to YAML ConverterSwitch configuration between JSON and YAML in either direction.
- JSON Stringify TextPaste text, get a string literal that is safe to place inside JSON.