Skip to content
Buy me a coffee
Minifiers / Beautifiers

Code Minifiers & Beautifiers

Beautify or compress JavaScript and CSS for readability or production.

JavaScript Beautifier / Formatter

Formats JavaScript files with the chosen indentation level and brace style: collapsed, expanded or expanded with new line.

  • 2, 3, 4 spaces or tabs
  • Collapsed, expanded or end-expanded brace styles
  • Preserves or normalises blank lines
  • Copy-paste or file upload
Open tool

JavaScript Minifier / Compressor

Compresses JavaScript with no side-effects: removes whitespace and comments, shortens local variable names and applies safe compression optimisations (powered by Terser).

  • Safe compression with Terser
  • Mangles local variable names
  • Optional: keep comments, ES module mode
  • Shows the size reduction
Open tool

CSS Beautifier / Formatter

Formats CSS files with the chosen indentation level for optimal readability.

  • 2, 3, 4 spaces or tabs
  • One selector per line and blank lines between rules
  • Copy-paste or file upload
Open tool

CSS Minifier / Compressor

Compresses a CSS string or file with no possible side-effect: strips comments and whitespace, removes the last semicolon, shortens colours and zero values.

  • Removes whitespace, comments and redundant semicolons
  • Shortens hex colours (#AABBCC → #ABC) and rgb() values
  • Removes units on zero values and leading zeros
  • Shows the size reduction
Open tool