JSON Formatter
Pretty-print JSON with 2, 4 spaces or tabs. Keeps big numbers and strings exactly as written and flags duplicate keys. Runs entirely in your browser.
LocalFormat, validate and convert JSON, YAML and XML in your browser without sending data to any server.
Pretty-print JSON with 2, 4 spaces or tabs. Keeps big numbers and strings exactly as written and flags duplicate keys. Runs entirely in your browser.
LocalCheck whether JSON is valid per RFC 8259 and get the exact line and column of the first error, plus duplicate key warnings.
LocalStrip whitespace and line breaks from JSON without touching string contents or number precision.
LocalConvert JSON to YAML 1.2, quoting ambiguous strings (yes, no, 0123…) so they keep their type. Warns about numbers other parsers may round.
LocalConvert YAML to JSON with a safe schema: rejects custom tags and duplicate keys and limits aliases to prevent expansion attacks.
LocalIndent XML while respecting mixed content and xml:space="preserve". DTDs and external entities are rejected: nothing is fetched or expanded.
LocalCheck whether XML is well-formed and see the error line and column. Does not validate against DTD or XSD and never resolves external entities.
LocalConvert XML to JSON with a documented convention (@attributes, #text) and a clear list of what is lost: order across different elements, comments and namespace declarations.
Local