Skip to content

JSON Rename Keys

Rename JSON object keys using a key mapping. Add oldKey: newKey pairs on lines before your JSON to define the mapping.

Input

json
loading editor…

Paste key mappings then your JSON...
or drop a file anywhere in this pane

Output

json

Renamed JSON will appear here...
press to rename keys

What Is JSON Key Renaming?

JSON key renaming transforms object keys across your entire data structure using an old-to-new mapping. This is essential when migrating API responses, normalizing data from different sources, or conforming to a new schema.

  • API Migration: Adapting responses from deprecated APIs.
  • Data Normalization: Standardizing field names across datasets.
  • Schema Changes: Updating JSON to match new database schemas.

How to Rename JSON Keys Online

  1. Add oldKey: newKey mapping lines (one per line) before your JSON.
  2. Paste your JSON data after the mappings.
  3. Click Rename Keys to transform all matching keys recursively.

Frequently Asked Questions

Does it rename keys at all nesting levels?

Yes. The mapping is applied recursively to every object at every depth.

What if a mapping key is not found?

Unmatched keys are left unchanged.

Is this tool safe?

Yes. Processing is 100% client-side.

Related Tools