JavaScript / CSS Minification

Compress and minify JavaScript and CSS source code

Processing...

Features

Minify both JS and CSS

Minify source in both languages by switching tabs

Remove comments and whitespace at once

Automatically reduce line breaks and unnecessary semicolons too

Visualize the reduction in numbers

Instantly show the size before and after compression and the reduction rate

Preserve strings and regular expressions

Compress safely without breaking literals in the code

How to Use

1

Select the language to minify

Choose the language to minify from the JavaScript and CSS tabs

2

Enter the source code

Paste the code in the input field, or try it with the sample button

3

Run with the minify button

Generate the minified result with whitespace and comments removed

4

Check and save the result

Check the minified code and reduction rate, then get it by copy or download

Use Cases

Speed up website display

Reduce JS and CSS file size to shorten load times

Final step before production release

Minify release assets to keep distribution costs down

Save mobile data usage

Compress transferred data for mobile environments to save data

Obfuscate source code

Strip formatting information to make the source harder to read

Safety and Privacy

Runs entirely in your browser

Your input data is processed only within your browser and is never sent externally.

Processing only in your browser

code compression is processed entirely within your browser, and input data is not sent to any server.

Communications encrypted with HTTPS

Page loading is also encrypted by TLS, and content cannot be read by third parties.

No transmission to third parties

Input content is not sent to external services such as ad networks or trackers.

No automatic saving of results

the input and minified result and input suggestions are not stored on the server.