JSON Key Renamer

Rename JSON object keys everywhere they appear, at any nesting depth. Runs entirely in your browser.

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.

Share on LinkedInShare on X
Link to this tool

Copy this HTML to cite this tool from your own site or article.

About JSON Key Renamer

JSON Key Renamer replaces specific object keys across JSON documents at any depth without modifying data values.

How to use JSON Key Renamer

  1. Paste JSON document into the input pane.
  2. Enter original key name to find and new key name to set.
  3. Click Rename Keys to perform global recursive key replacement.
  4. Copy updated JSON payload.

Examples

Original: {"user_id": 10, "details": {"user_id": 10}} Rename: user_id -> userId Result: {"userId": 10, "details": {"userId": 10}}

FAQ

Does renaming affect string values inside JSON properties?

No. Only object key names are renamed; string data values remain untouched.

Can I apply multiple key renaming rules at once?

Yes. You can define multiple search and replacement key mapping pairs.