Code Formatters
Code Formatter Tools
Format SQL queries, preview Markdown, and pretty-print JSON. All run in your browser — your code never leaves your machine.
Format and beautify SQL queries. Supports MySQL, PostgreSQL, SQLite, T-SQL, and BigQuery. Configurable indent, keyword case, and indent style.
Live Markdown editor with side-by-side preview. Supports GitHub Flavored Markdown — tables, fenced code blocks, and strikethrough.
Pretty-print or minify JSON with configurable indentation. Validates syntax and highlights errors. Instant output.
Test regular expressions live. Match highlighting, capture groups, named groups, all JavaScript flags, and replace mode with backreferences.
Compare two text or code blocks. Line, word, and character-level diff with color-coded additions and deletions. Unified and split view.
Concepts
Why format code?
Consistent formatting makes code easier to read, review, and diff. Formatters apply a deterministic style so every developer on a team produces the same output — eliminating whitespace-only diffs in code review.
Formatting is non-destructive
A formatter only changes whitespace, indentation, and capitalization (for SQL keywords). The logic, values, and structure of your query or document are identical before and after formatting.
Browser-based — nothing uploaded
All formatting runs in your browser using JavaScript. Your SQL queries, Markdown documents, and JSON data never leave your machine. Safe for internal queries, sensitive schemas, and private documentation.