Formatierer & Code
JSON5-Formatierer
Kostenloser JSON5-Formatierer. Akzeptiert JSON mit Kommentaren, nachgestellten Kommas und anderer relaxter Syntax und gibt dann striktes JSON aus. Nützlich für Konfigurationsdateien, die vom Standard abgewichen sind.
Anmerkung der Redaktion
Understanding · JSON for humans.
Dieses ausführliche Kapitel ist derzeit nur auf Englisch verfügbar. Das Konvertierungstool oben funktioniert in Ihrer Sprache; der lange Erklärtext wurde noch nicht übersetzt.
Häufig gestellte Fragen
Quick answers.
›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.
Andere suchten auch nach
Verwandte Tools
More in this room.
- JSON Formatter & ValidatorJSON verschönern, minimieren und validieren — kostenlos, ohne Anmeldung.
- SQL FormatterHässliche SQL-Abfragen verschönern und einrücken.
- XML Formatter & ValidatorXML verschönern, minimieren und validieren — sofort.
- HTML FormatterHTML verschönern und minimieren — Prettier-Standardwerte.
- CSS FormatterCSS-Stylesheets verschönern und minimieren.
- JavaScript / TypeScript FormatterPrettier-formatiertes JS & TS, im Browser.