JSON Case Converter

Convert JSON object keys and values between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE.

Input JSON
Paste your JSON here to convert case format.
Loading...
Converted Cases
Please enter valid JSON
Loading...

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

  1. Paste your JSON

    Drop in the object or array whose keys you want to rename. Nested structures are handled in one pass.

  2. Choose the target case

    Pick camelCase, snake_case, kebab-case, PascalCase, or CONSTANT_CASE depending on the convention the receiving code expects.

  3. Review the converted output

    Check that keys throughout the tree — including inside arrays and nested objects — now use the chosen style.

  4. Copy the result

    Paste the re-cased JSON into your request, fixture, or config.

Frequently asked questions