CSS Formatter
Format and minify CSS in the browser. Expand rules for readability or compress stylesheets for a quick size check. Paste a snippet, tidy selectors and declarations, and copy the result. Proprietary styles are not uploaded.
Runs in your browser. Nothing is uploaded.
About this tool
Pretty-print or minify CSS in the tab. Beautify uses js-beautify; minify strips comments and extra space. Proprietary stylesheets stay on your computer instead of a 'CSS pretty print' upload form.
How to use: paste rules, pick beautify or minify, copy. Use it for a readability pass on a snippet from DevTools or a rough size check before you run a full production minifier in CI. Nested modern CSS should round-trip; exotic preprocessors may not.
Example: a minified utility chunk becomes scannable with wrapping and indent. Design-system tokens in comments survive beautify but drop in minify.
No upload of stylesheet source. Load once, format offline. Related: HTML formatter, color converter for HEX/RGB/HSL tokens in the same file. Use beautify when reviewing a snippet; use minify only as a rough byte check. Vendor prefixes and custom properties should survive a typical beautify pass. Copy from the sticky bar when the preview looks right.
Related Web tools
JSON Formatter
Pretty-print, minify, and validate JSON in your browser. Paste a payload, fix indentation, and spot syntax errors without sending data to a server. Works for APIs, config files, and nested objects. Output stays on your device.
JavaScript Formatter
Beautify or compact JavaScript in the browser. Re-indent minified snippets from DevTools, or collapse whitespace for a rough size check. Formatting stays on-device so proprietary scripts are never posted to a beautifier.
SQL Formatter
Beautify SQL in the browser with dialect-aware formatting for PostgreSQL, MySQL, SQLite, and T-SQL. Paste a query, pick indent, and copy readable SQL without sending statements to a formatter service.
HTML Formatter
Beautify or minify HTML markup locally. Re-indent nested tags, collapse whitespace for production snippets, and copy formatted markup without posting templates to a formatter service. Handy for emails, partials, and messy copy-paste from DevTools.
XML Formatter
Pretty-print or minify XML documents in your browser. Indent nested elements from SOAP, RSS, and config files, or collapse whitespace for a compact blob. Parsing and formatting never leave the tab.
URL Encoder
Percent-encode and decode URLs and query parameters with encodeURIComponent-style rules. Fix broken links, escape reserved characters, and inspect encoded query strings locally. A small, private alternative to sending URLs through an online encoder.