๐Ÿ”‘ JSON Key Renamer

Batch rename JSON keys with naming style conversion and custom mappings

Zero Dependencies ยท Works Offline

๐Ÿ“ Input JSON

What Can the JSON Key Renamer Do?

The JSON Key Renamer is a free online tool for batch renaming keys in JSON objects. It supports conversion between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE naming styles, as well as custom key mappings for precise control. The tool recursively traverses nested objects and arrays, renaming all matching keys at every level. All processing runs locally in your browser with no server uploads.

Core Features

How to Use

1. Paste JSON content in the input box, or click "Load Example".

2. Choose conversion mode: Style Conversion (automatic) or Custom Mapping (manual).

3. Select target style or add custom key mappings.

4. Click "Convert" to see the result.

5. Click "Copy Result" or "Download JSON" to export.

Use Cases

Case 1: Frontend-Backend Data Alignment

Backend returns snake_case JSON, frontend needs camelCase โ€” one-click conversion saves manual editing.

Case 2: Database Field Mapping

Database fields use snake_case, APIs need camelCase output โ€” batch convert JSON keys.

Case 3: Code Refactoring

Unify naming conventions during refactoring by batch converting JSON config styles.

Case 4: Third-party API Adaptation

When third-party API key names don't match your project conventions, use custom mappings for precise conversion.

Extended Knowledge

JSON key naming conventions vary across languages and frameworks: JavaScript/Java prefer camelCase, Python/Ruby prefer snake_case, CSS/URLs prefer kebab-case, C# prefers PascalCase, and constants use CONSTANT_CASE. In frontend-backend separation, backends typically use snake_case (database field style) while frontends use camelCase (JavaScript convention), requiring a data layer transformation. Common conversion rules: snake_case splits on underscores and capitalizes subsequent words for camelCase; camelCase inserts underscores before uppercase letters and lowercases for snake_case.

โ“ FAQ

What naming styles are supported?

camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, and custom key mappings.

Does it support nested JSON?

Yes. The tool recursively traverses all nested levels and arrays, renaming all matching keys.

Is my data uploaded?

No. Pure frontend technology โ€” all conversion happens locally. Your data never leaves your device.

Can I use custom mappings?

Yes. Switch to "Custom Mapping" mode to specify old key โ†’ new key pairs.

Does it work with arrays?

Yes. The tool traverses each object element in arrays and renames keys within them.

Can I export results?

Yes. Copy results to clipboard or download as JSON file.

JSON Key Renamer | No Signup, Client-Side ยท No Server Uploads

Feedback: dexshuang@google.com