Code Formatters

JSON Formatter, HTML Formatter, SQL Formatter and Minifier Online

Formatters and minifiers for code. Pretty-print or minify JSON, HTML, CSS, JavaScript, SQL and XML, fix indentation, and convert between HTML and Markdown. The formatters follow common style defaults, and you can adjust the indent width.

21 tools tagged Code Formatting

Checklist Formatter

Convert Markdown checklists to Jira or Slack format.

CSS Formatter

Expand minified CSS to one declaration per line, or minify it back.

CSS Validator

Find typos, missing semicolons and unknown properties in pasted CSS.

CSV Formatter

Align CSV into readable columns or swap delimiters and fix quoting.

Email Validator

Check a list of email addresses for syntax errors and likely typos.

HTML Formatter

Indent messy HTML or collapse it safely, keeping pre and script intact.

HTML To Markdown

Turn HTML into clean Markdown with lists, links, code and tables.

HTML Validator

Find unclosed tags, duplicate ids and bad nesting in pasted HTML.

Indent Code

Shift every line right by a set number of spaces or tabs.

JavaScript Formatter

Expand minified JavaScript into indented code, or squash it back.

JSON Formatter

Format, minify and validate JSON, with located errors.

Markdown Editor

Write markdown with a live preview; open, save and autosave.

Markdown Formatter

Tidy headings, lists, tables and spacing in Markdown.

SQL Formatter

Turn a one-line SQL query into readable indented SQL.

SVG Formatter

Pretty-print SVG for reading or minify it to one line.

SVG Validator

Find unclosed tags, bad path data and broken references in SVG.

Text To HTML Converter

Wrap plain text in semantic HTML paragraph tags.

Unindent Code

Remove common or fixed indentation from a block of code.

URL Validator

Check a list of URLs for syntax errors, one per line.

XML Formatter

Indent messy XML or squash it to one line, with tag checking.

YAML Formatter

Tidy inconsistent YAML and pinpoint syntax errors by line.