JSON Key Normalizer

Rewrite every key in your JSON to a consistent case convention — across the entire object tree.

JSON Key Renamer

Transform and rename JSON keys with ease

Case Transform:

Rename Rules (optional)

→

Multiple Formats

camelCase, snake_case, PascalCase, kebab-case

100% Private

All processing happens in your browser

No Signup

Free tool, no registration required

JSON Key Renaming: API Normalization and Schema Migration

Renaming keys in a JSON structure is a common transformation when integrating APIs, migrating data schemas, or normalizing data from multiple sources into a consistent format. An external API might return user_id while your application uses userId. A legacy database might use CUSTOMER_ID while your new service expects customerId. Key renaming transforms the data structure without changing its values.

Common Use Cases

API integration: transforming a third-party API's snake_case keys to camelCase for JavaScript consumption. Schema migration: renaming fields in a database export before reimporting into a new schema. Data normalization: standardizing key naming conventions across JSON from multiple sources before combining them. Privacy: renaming or removing PII field names before logging or sharing data. Testing: quickly producing test fixtures with different field names to verify parser robustness.

Bulk Case Conversion

A common scenario is converting all keys in a JSON structure from one naming convention to another: snake_case to camelCase for APIs consumed by JavaScript, camelCase to PascalCase for .NET, or camelCase to snake_case for Python. Doing this manually for a large JSON object is tedious and error-prone — a single-field rename inside a 1000-element array requires changing all 1000 instances. This tool can rename keys recursively across the entire structure in one operation.

How to Use This Tool

Paste your JSON, specify the old key name and the new key name, and choose whether to apply the rename recursively to all nested objects. The transformed JSON appears in the output area. You can chain multiple renames by applying them sequentially.

Frequently Asked Questions

Instant

Runs entirely in your browser — no upload, no wait.

100% private

Your JSON never leaves the tab. Nothing is logged.

No signup

Free, unlimited, no account required.

Why normalize?

APIs from different teams emit different conventions: firstName, first_name, First-Name. Normalizing to one convention before persisting or comparing avoids subtle bugs and makes diffs readable.

Convention mismatches cause real bugs. A JavaScript frontend that receives `user_id` from a Python backend needs to either rename the key on every access or use bracket notation everywhere. An ORM that maps snake_case database columns to camelCase objects breaks silently if an upstream API adds a new field in the wrong case. Normalizing at the boundary — before the data enters your application — means your code only ever deals with one convention.

Supported conventions

camelCase — firstName. The default for JavaScript and TypeScript, used by most REST APIs, JSON Schema properties, and GraphQL field names. snake_case — first_name. The default in Python, Ruby, and many SQL databases. Django, SQLAlchemy, and ActiveRecord all use snake_case by convention. kebab-case — first-name. Used in URL slugs, CSS custom property names, and HTML data attributes. Not valid as a JavaScript identifier without bracket notation. PascalCase — FirstName. Used in C# class members, Go exported fields, and some .NET and Java APIs. SCREAMING_SNAKE — FIRST_NAME. Standard for constants, environment variables, and configuration keys in many languages.

How it handles edge cases

Acronyms (URL, ID, HTTP) are detected and folded according to convention — URLPath becomes urlPath in camelCase, url_path in snake_case, and URLPath in PascalCase. Numbers attached to words (field1 vs field_1) are configurable — the normalizer can treat them as attached or as word boundaries depending on your convention. Keys that are already in the target convention are left unchanged. Keys that contain characters invalid in the target convention (hyphens in snake_case targets) are converted at the separator boundary.

Code recipe

For one-off scripts, lodash + a recursive walk does the same job.

import { camelCase, isPlainObject } from 'lodash-es';
function normalize(node) {
  if (Array.isArray(node)) return node.map(normalize);
  if (isPlainObject(node)) return Object.fromEntries(Object.entries(node).map(([k, v]) => [camelCase(k), normalize(v)]));
  return node;
}

Privacy

Local-only — no upload.

Related tools

Frequently asked questions