Skip to main content
7B BusyBoss

Code Formatters

Format and validate JSON, HTML, CSS.

6 tools · sorted by popularity

Code formatters: six strict tools

The thread through these code formatters is strictness. Each one implements one standard exactly and refuses the dialect next door, which is what makes the output trustworthy and what will surprise you if you arrive expecting the lenient version. All six run in your browser, so pasting a real payload or a config full of hostnames is fine.

  • The JSON Formatter and Validator beautifies at a fixed two spaces, minifies, and reports the exact position where parsing failed. It is plain JSON: a trailing comma, a single-quoted string or an unquoted key fails, and there is no JSON5, no comments and no key sorting.
  • The JSON to YAML Converter goes one direction only and quotes any string a YAML parser would retype, so NO stays a country code rather than becoming false and 0700 stays a code rather than becoming octal 448.
  • The JSON to CSV and CSV to JSON converter runs both ways with RFC 4180 quoting. CSV has no types, so a round trip returns true, 42 and null as three strings, and nested objects land in a single cell as JSON text.
  • The Regex Tester runs JavaScript patterns live with the g, i, m, s and u flags, highlights matches and lists capture groups by position, capped at 1,000 matches. A pattern that backtracks catastrophically can still freeze the tab mid-match.
  • The Markdown to HTML Converter emits a fragment rather than a page, escapes raw HTML instead of passing it through, adds a new-tab attribute to links and does not convert tables.
  • The Markdown Editor is CommonMark plus strikethrough with a side-by-side preview and a draft saved to your browser's local storage half a second after you stop typing. Task lists, tables, footnotes and maths do not render.

Round-trip Markdown and HTML conversion, including what the return trip rewrites, lives with the Markdown converters.