Code Beautifier / Minifier
**Prettier**-backed formatter for 10 languages (JS / TS / JSX / TSX / JSON / CSS / SCSS / HTML / Markdown / YAML), plus a one-click minifier for JSON / CSS / HTML. Runs entirely in your browser β code never leaves.
Advanced (Prettier options)
0 bytes
0 bytes
βΊHow to use
- Pick Beautify or Minify, then choose a language (or let auto-detect guess from the content).
- Paste the source on the left, or click Open file to upload one (extension picks the language).
- Beautify mode lets you expand Advanced to tweak Prettier: print width, tab width, single quotes, semicolons.
- Hit Beautify / Minify β the result appears on the right with bytes & delta. Copy or Download with the correct extension.
Tips
- Prettier is the industry standard β built into VS Code & WebStorm. We just ship it as a zero-config, no-install tab.
- Minify currently covers JSON / CSS / SCSS / HTML only β JS minification needs Terser, which would bloat the bundle. Run
npx terserfor that. - Auto-detect uses content heuristics. JSON / HTML / CSS are highly reliable; override manually when ambiguous.
- HTML minify preserves
,,,content (won't break layout or scripts).
π‘ The first time you hit Beautify the Prettier engine loads (~400KB, cached after first fetch). Subsequent runs are instant.
Related tools
- Taiwan test data generatorValid TW national ID, BAN, mobile, Luhn credit cards
- JSON formatter + Schema validatorFormat / minify / sort + JSON Schema validation
- Unix time & timezone converterSeconds / ms / ISO interop with timezone-aware display
- Markdown batch translatorBring-your-own OpenAI / Anthropic / Google API key. Batch-translate .md files while preserving frontmatter / code / links