Skip to content

Code Formatters

Clean, fast formatters for code and data in every format you work with. Paste messy JSON, SQL, HTML, CSS, or XML and get properly indented, syntax-highlighted output instantly. Every formatter runs entirely in your browser — no data is ever sent to a server.

9 tools

JSON Formatter & Validator

Format, validate and minify JSON with 2-space, 4-space or tab indents, alphabetical key sorting and line-numbered parse errors.

SQL Formatter & Beautifier

Format and minify SQL queries with 2-space, 4-space or tab indentation and uppercase, lowercase or capitalized keywords.

Markdown Preview

Preview Markdown as rendered HTML while you type, with tables, fenced code blocks, strikethrough and images, and copy the HTML.

XML Formatter & Viewer

Format, beautify, and validate XML with syntax highlighting, tree view toggle, and minification

Log Parser & Highlighter

Parse logs with auto-detection of JSON Lines, Python logging, syslog and nginx access formats, then filter by level and search.

JavaScript Minifier & Beautifier

Minify JavaScript by stripping comments and whitespace, or beautify it with 2-space, 4-space or tab indentation, and see the size saved.

CSS Minifier & Beautifier

Minify or beautify CSS with size reduction stats and comment removal options

HTML Formatter & Viewer

Format or minify HTML with adjustable indentation, preview the rendered page, and flag unclosed tags, duplicate IDs and missing alt text.

Terraform HCL Formatter

Format Terraform HCL with terraform fmt-style indentation and aligned equals, and lint for hardcoded secrets, 0.0.0.0/0 rules and undeclared vars.

The same list is available as JSON at /api/tools-by-category.json.