PixNudge

JSON5 to JSON Converter

Convert JSON5 — with comments, trailing commas, single quotes and unquoted keys — to standard JSON, or turn JSON into compact JSON5.

JSON5
JSON

How it works

  1. 1

    Paste or open your data

    Paste text, drop a file onto the editor or click Open file. Load sample shows how the tool works.

  2. 2

    Adjust the options

    The result updates as you type. Change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard or download it as a file.

Why PixNudge

Nothing is uploaded

Your data is processed in your browser and never sent to a server, so API keys, tokens and customer data stay private.

Instant, even for large files

There is no round trip to a server: results appear as you type, and files of several megabytes are handled smoothly.

Exact numbers

Long numbers such as 64-bit IDs are kept exactly as written instead of being rounded.

Frequently asked questions

What is JSON5?

JSON5 is an extension of JSON that is easier to write by hand. It allows comments, trailing commas, single-quoted strings, unquoted keys, hexadecimal numbers, Infinity and NaN.

Why convert JSON5 to JSON?

Most APIs and programming languages only accept standard JSON. Converting removes comments and the other JSON5 features so the data can be read anywhere.

What happens to comments?

Standard JSON has no comments, so they are removed when JSON5 is converted to JSON.

More free tools