JSON Case Converter
Convert JSON object keys and values between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE.
About JSON Case Converter
Different ecosystems disagree on how to name things. A Ruby or Python API hands you snake_case keys; your TypeScript frontend wants camelCase; an environment-style config wants CONSTANT_CASE. When a JSON payload crosses one of those boundaries, every key has to be renamed — and doing it by hand on a deeply nested object is exactly the kind of repetitive task that introduces typos.
This converter rewrites the casing of an entire JSON document at once. Paste your JSON, choose the target case, and it walks every key (and optionally values) recursively, converting camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE consistently across nested objects and arrays. The structure and the data stay intact — only the naming style changes.
It runs locally in your browser, so you can paste real payloads without anything being uploaded. Convert the keys to match the layer you're feeding, then copy the result straight in.
How to use JSON Case Converter
Paste your JSON
Drop in the object or array whose keys you want to rename. Nested structures are handled in one pass.
Choose the target case
Pick camelCase, snake_case, kebab-case, PascalCase, or CONSTANT_CASE depending on the convention the receiving code expects.
Review the converted output
Check that keys throughout the tree — including inside arrays and nested objects — now use the chosen style.
Copy the result
Paste the re-cased JSON into your request, fixture, or config.
Frequently asked questions
Related developer tools
TypeScript Case Converter
Convert TypeScript type and interface definitions between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE.
JSON Formatter · Beautifier · Validator
Format, minify, sort keys, and validate JSON/JSONC/JSON5 with optional JSON Schema validation. Supports comments and trailing commas.
JSON to TypeScript Converter
Instantly convert JSON objects or arrays into clean TypeScript interfaces or type aliases.