Free · Server conversion · No sign-up

JSON5 to JSON Converter

Convert JSON5 comments, trailing commas, unquoted keys and single-quoted strings into strict formatted JSON.

Your input is sent to this site only after you choose Convert on server. The conversion runs for this request and no history is saved. Upload up to 4 MiB combined; Office files have a 2 MiB limit.

STEP 1

Enter your text

Edit the example text or paste your own content.

How to use JSON5 to JSON Converter

  1. Choose the example or select your input files in the required format.
  2. Check the options, then select Convert on server to upload and process the input.
  3. Review the result and download the converted file.

What this conversion produces

Clean a JSON5 configuration for a program that accepts only strict JSON. The parser supports familiar JSON5 conveniences such as comments, trailing commas and quoted or unquoted object keys, then writes a consistently formatted JSON document. This is useful when moving a development configuration into a stricter import interface.

Supported input and practical limits

Only values that strict JSON can represent are accepted. Non-finite numbers and unsafe integer magnitudes are rejected rather than silently converted to null or rounded. Comments and original formatting are intentionally discarded in the output. Duplicate object keys follow the JSON5 parser’s last-value behavior, so review configurations where repeated keys may be significant. Input is limited to 2 MiB of text with bounded object depth.

Example input

// Development settings
{ app: 'Utilixio', enabled: true, ports: [3000, 3001,], }

What should I know before converting?

Only values that strict JSON can represent are accepted.

Is input uploaded?

This tool sends input to this site’s conversion API after you select Convert on server. Files use bounded workers and, when needed, private temporary folders deleted after processing or cancellation. No conversion history is saved. The converter does not upload files to a third-party conversion service.

Related tools and guides

Browse all developer tools