Free · No sign-up · Runs in your browser

JSON Key Case Converter

Recursively convert JSON property names to camelCase, snake_case, kebab-case or PascalCase with collision detection.

STEP 1

Start with your input

Edit the example or replace it with your own text.

STEP 2

Choose your options

These settings are optional. Keep the defaults to get started.

How to use JSON Key Case Converter

  1. Load the included example or provide your own input and settings.
  2. Choose the operation and review the supported format below.
  3. Run the tool, inspect the result, and copy or download it.

Change property conventions recursively

Convert keys in objects nested inside arrays and other objects while keeping scalar values unchanged. The converter recognizes common camel-case boundaries, uppercase acronym boundaries and punctuation separators before applying the selected naming convention. Use it for reviewing an API response, preparing a fixture or adapting a small configuration document. Array positions and ordinary string values are not treated as property names.

Detect collisions before exporting

Different source keys can produce the same destination name, for example user-name and user_name. Instead of silently overwriting a value, the converter stops with a collision error. Keys that contain no usable letters or numbers are also rejected. Input is limited to thirty-two nesting levels and fifty thousand visited values. JSON numeric precision follows the browser parser; encode long identifiers as strings before transformation.

Example input

{"user_name":"Ada","HTTPStatus":200,"profile_data":{"last_login":null}}

Does JSON Key Case Converter upload my input?

No. This tool processes input locally in your browser without calling a conversion API.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools