About this tool
Each rule renames a key wherever it appears in the document, at any nesting depth — useful for converting between naming conventions (e.g. snake_case API responses to camelCase) without hand-editing every occurrence.
Rename JSON object keys everywhere they appear, at any nesting depth. Runs entirely in your browser.
Each rule renames a key wherever it appears in the document, at any nesting depth — useful for converting between naming conventions (e.g. snake_case API responses to camelCase) without hand-editing every occurrence.
Copy this HTML to cite this tool from your own site or article.
JSON Key Renamer replaces specific object keys across JSON documents at any depth without modifying data values.
Original: {"user_id": 10, "details": {"user_id": 10}} Rename: user_id -> userId Result: {"userId": 10, "details": {"userId": 10}}
No. Only object key names are renamed; string data values remain untouched.
Yes. You can define multiple search and replacement key mapping pairs.
Text & Data
Recursively sort JSON object keys alphabetically for cleaner, diff-friendly output.
Text & Data
Compare two JSON documents and inspect changed paths locally.
Text & Data
Escape text for embedding in JSON, or unescape a JSON string literal back to raw text.