10 Best JavaScript Minifiers Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

svgo

⚙️ Node.js tool for optimizing SVG files

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.7/ 5
28
Top Feedback
8Great Documentation
5Easy to Use
5Performant
GitHub Stars
17K
Weekly Downloads
11M
Last Commit
9d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable

terser-webpack-plugin

Terser Plugin

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
4.5/ 5
2
Top Feedback
1Performant
GitHub Stars
2K
Weekly Downloads
23M
Last Commit
20d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
gpp

gatsby-plugin-purgecss

Gatsby plugin for purgecss. Removes unused css/sass/less/stylus. Supports tailwind, bootstrap, bulma etc.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Easy to Use
1Bleeding Edge
GitHub Stars
68
Weekly Downloads
21K
Last Commit
9d ago
Bundle Size (min+gzip)
0.13KB
Not Tree-Shakeable
rpt

rollup-plugin-terser

Rollup plugin to minify generated bundle

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Easy to Use
1Performant
GitHub Stars
545
Weekly Downloads
3M
Last Commit
1yr ago
Bundle Size (min+gzip)
145.9KB
Not Tree-Shakeable

imagemin

[Unmaintained] Minify images seamlessly

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
3.7/ 5
3
Top Feedback
2Performant
2Poor Documentation
2Hard to Use
GitHub Stars
5K
Weekly Downloads
1M
Last Commit
2mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
gcc

gulp-clean-css

Minify css with clean-css.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
638
Weekly Downloads
193K
Last Commit
2yrs ago
Bundle Size (min+gzip)
61.9KB
Not Tree-Shakeable
gu

gulp-uglify

Minify files with UglifyJS

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.5/ 5
2
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
1K
Weekly Downloads
371K
Last Commit
3yrs ago
Bundle Size (min+gzip)
90.9KB
Not Tree-Shakeable
nm

node-minify

Light Node.js module that compress javascript, css and html files

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
425
Weekly Downloads
13K
Last Commit
2mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
eh

ejs-html

Embedded JavaScript HTML templates. Another implementation of EJS, focused on run-time performance, basic HTML syntax checking and outputting minified HTML.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
4.0/ 5
1
Top Feedback
N/A
GitHub Stars
6
Weekly Downloads
135
Last Commit
4yrs ago
Bundle Size (min+gzip)
12.6KB
Not Tree-Shakeable
mcc

mini-css-class-name

Minimum size unique CSS class names generator

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
6
Weekly Downloads
946
Last Commit
5d ago
Bundle Size (min+gzip)
0.70KB
Not Tree-Shakeable
gpm

gatsby-plugin-minify-classnames

Minify CSS Modules classnames

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
12
Weekly Downloads
2K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
gpm

gatsby-plugin-mini-css-class-name

Minifying CSS class names

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
637
Last Commit
5d ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
gpm

gatsby-plugin-minify

A Gatsby plugin to easily minify all result.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
2K
Last Commit
7mos ago
Bundle Size (min+gzip)
209.4KB
Not Tree-Shakeable
gpo

gatsby-plugin-optimize-svgs

A Gatsby Plugin to minify SVGs output to the filesystem during the build.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
39
Weekly Downloads
3K
Last Commit
9mos ago
Bundle Size (min+gzip)
0.13KB
Not Tree-Shakeable
em

express-minify

Automatically minify and cache your javascript and css files.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
13K
Last Commit
N/A
Bundle Size (min+gzip)
120.6KB
Not Tree-Shakeable

yuicompressor

YUI Compressor

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3K
Weekly Downloads
6K
Last Commit
2yrs ago
Bundle Size (min+gzip)
0.68KB
Not Tree-Shakeable
cr

coral-reef

A Next.js Setup with so many features out of the 📦

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
8
Last Commit
8mos ago
Bundle Size (min+gzip)
224.0KB
Not Tree-Shakeable
eum

express-uglify-middleware

UglifyJS middleware for Express.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
5K
Last Commit
N/A
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
emh

express-minify-html

Express middleware wrapper around HTML minifier

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
53
Weekly Downloads
5K
Last Commit
4yrs ago
Bundle Size (min+gzip)
90.2KB
Not Tree-Shakeable
emh

express-minify-html-terser

Express middleware wrapper around html-minifier-terser

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
197
Last Commit
10mos ago
Bundle Size (min+gzip)
192.1KB
Not Tree-Shakeable
njm

node-json-minify

Simple minifier for JSON to remove comments and whitespace

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
379
Weekly Downloads
3K
Last Commit
2mos ago
Bundle Size (min+gzip)
0.46KB
Not Tree-Shakeable
noc

next-optimized-classnames

Reduce all CSS classes produced by CSS modules to the smallest form possible

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
22
Weekly Downloads
331
Last Commit
7mos ago
Bundle Size (min+gzip)
0.72KB
Not Tree-Shakeable
gpm

gatsby-plugin-minify-html

🚀 A Gatsby plugin for minify HTML files.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
10
Weekly Downloads
1K
Last Commit
1yr ago
Bundle Size (min+gzip)
0.13KB
Not Tree-Shakeable
eb

express-beautify

HTML output beautify filter for express

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
345
Last Commit
5yrs ago
Bundle Size (min+gzip)
110.5KB
Not Tree-Shakeable
nbm

next-babel-minify

Next.js plugin to replace UglifyJS for BabelMinify

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
6
Weekly Downloads
292
Last Commit
1yr ago
Bundle Size (min+gzip)
184.6KB
Not Tree-Shakeable
gph

gatsby-plugin-html-minifier

A Gatsby plugin to easily minify HTML file

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
84
Last Commit
2yrs ago
Bundle Size (min+gzip)
0.42KB
Not Tree-Shakeable
eb

express-browserify

Thin browserify middleware for express.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
74
Last Commit
N/A
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
em

express-minifier

Automatically minify CSS, JS and HTML files!

License Icon
License: GPL-3.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
1
Last Commit
5mos ago
Bundle Size (min+gzip)
553.1KB
Not Tree-Shakeable
nu

node-uglifier

Fully auto merging and obfuscating (uglify) a whole NodeJs project into one file with external files option. Thieves lose the module name and structure information, code runs faster. Makes deployement super easy! It can also separate a project's original files based on the dependency tree.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
173
Weekly Downloads
48
Last Commit
5yrs ago
Bundle Size (min+gzip)
69.8KB
Not Tree-Shakeable
gpj

gatsby-plugin-jss-provider

Provides drop-in support for JSS wrapping your Root element into a react-jss JssProvider. Custom config allows you to pass custom props to the JssProvider. Minify option allows you to enable csso minifier to compress css for SSR.

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
40
Last Commit
N/A
Bundle Size (min+gzip)
0.13KB
Not Tree-Shakeable
um

uglifyjs-middleware

The no-thought-necessary JavaScript minification middleware for connect and express.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
30
Last Commit
N/A
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
min

minifyjs

A node-package for minifying javascript.

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
17
Weekly Downloads
17
Last Commit
8yrs ago
Bundle Size (min+gzip)
0.63KB
Not Tree-Shakeable
min

minimonster

Nodejs css/js minification middleware for connect/express with in-memory caching support

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
3
Weekly Downloads
13
Last Commit
6yrs ago
Bundle Size (min+gzip)
13.5KB
Not Tree-Shakeable
ehm

express-html-minify

minify-html

License Icon
License: BSD-2-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
6
Last Commit
6yrs ago
Bundle Size (min+gzip)
80.1KB
Not Tree-Shakeable
sa

serve-assets

An easy to use minifing assets-server as connect-middleware

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
3
Last Commit
7yrs ago
Bundle Size (min+gzip)
62.8KB
Not Tree-Shakeable
min

mineverything

Middleware for ExpressJS, uses uglify-js and uglifycss from NPM. Implements a caching mechanism. Super efficient all-in-one minifying for NodeJS.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
N/A
Bundle Size (min+gzip)
39.2KB
Not Tree-Shakeable
res

resmin

All-in-one minifier/merger/compressor middleware for connect/express

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
10
Weekly Downloads
1
Last Commit
10yrs ago
Bundle Size (min+gzip)
150.9KB
Not Tree-Shakeable
eh

express-hbsmin

Be careful if you use this: https://github.com/kangax/html-minifier .

License Icon
License: BSD-3-Clause
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
1
Last Commit
2yrs ago
Bundle Size (min+gzip)
165.9KB
Not Tree-Shakeable