Formatters
16 tools
Code & Data Formatters
Format, minify and sort code and data in your browser. Parsing, key sorting and comment removal can change more than whitespace; review each tool’s notes.
Choose by task
- Make a compact JSON response readable
- JSON Formatter — Parsing can drop duplicate keys and round numbers; preserve the original if those details matter.
- Reduce JSON layout for a payload
- JSON Minifier — Produces compact JSON from parsed values, not an exact whitespace-only edit.
- Lay out a query for review
- SQL Formatter — Choose the SQL dialect; formatting does not prove a query is correct.
Guides for this work
- JSON Formatter
Indent and beautify JSON, with syntax error locations when available.
- JSON Minifier
Remove all unnecessary whitespace from JSON and measure the saving.
- SQL Formatter
Beautify SQL queries with dialect-aware formatting.
- CSS Formatter
Beautify CSS and find unbalanced braces.
- CSV Formatter
Clean up and normalise a CSV file.
- HTML Formatter
Indent HTML and find unbalanced tags.
- JSON Sorter
Alphabetise JSON keys recursively to make documents diffable.
More formatters
- CSS MinifierCompress CSS with safe, conservative optimisations.
- CSV Column ExtractorSelect, reorder or drop CSV columns.
- CSV DeduplicatorRemove duplicate rows from a CSV file.
- CSV Row FilterKeep only the CSV rows matching a condition.
- CSV SorterSort CSV rows by a chosen column.
- HTML MinifierCompress HTML without changing how it renders.
- Markdown Table FormatterAlign Markdown table columns in the source.
- SQL MinifierCompress SQL to one line, safely stripping comments.
- CSV TransposerSwap rows and columns in a CSV file.