Skip to content

Formater JSON5

Darmowy formater JSON5. Akceptuje JSON z komentarzami, końcowymi przecinkami i inną luźniejszą składnią, a następnie wyprowadza ścisły JSON. Przydatny w przypadku plików konfiguracyjnych, które odbiegły od specyfikacji.

Runs in your browserUpdated Apr 26, 2026

JSON5 Input

Output

Często zadawane pytania

What is JSON5?

A superset of JSON that allows comments, trailing commas, unquoted keys and a few other conveniences. It's the format of many config files (tsconfig, devcontainer, babel) and drift-prone hand-edited JSON.

Does it handle single-quoted strings?

This tool handles the most common JSON5 drift — `// comments`, `/* block comments */` and trailing commas. For the full JSON5 spec (unquoted keys, single quotes, hex numbers) paste into a proper JSON5 parser locally.

What does the output look like?

Strict, spec-compliant JSON — 2-space indented. Safe to feed to any JSON.parse or schema validator.

Is it free?

Yes — fully free, in-browser, no signup.

Ludzie wyszukują również