Batch rename JSON keys with naming style conversion and custom mappings
Zero Dependencies ยท Works OfflineThe 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.
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.
Backend returns snake_case JSON, frontend needs camelCase โ one-click conversion saves manual editing.
Database fields use snake_case, APIs need camelCase output โ batch convert JSON keys.
Unify naming conventions during refactoring by batch converting JSON config styles.
When third-party API key names don't match your project conventions, use custom mappings for precise conversion.
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.
camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, and custom key mappings.
Yes. The tool recursively traverses all nested levels and arrays, renaming all matching keys.
No. Pure frontend technology โ all conversion happens locally. Your data never leaves your device.
Yes. Switch to "Custom Mapping" mode to specify old key โ new key pairs.
Yes. The tool traverses each object element in arrays and renames keys within them.
Yes. Copy results to clipboard or download as JSON file.