Terser

Terser

JavaScript parser, mangler, compressor and beautifier toolkit for ES6+ that parses modern JavaScript, renames and removes unused code, rewrites and compresses expressions, emits source maps, and exposes both a CLI and a programmatic API for build pipelines and bundler plugins.

Terser at terser.org is a free BSD-2-Clause JS parser mangler compressor and beautifier for ES6+, author Mihai Bazon, npm 5.51.4 Node 10+, AST parse, local-name mangling, unreachable and unused code removal, expression rewriting, beautify mode, CLI and programmatic API, source maps, acorn commander source-map-support and jridgewell source-map deps, no sold commercial tier (data as of Nov 22, 2026).

Visit Official Website

*This is an affiliate link, we may earn a commission at no extra cost to you.

Is Terser free?

Terser: Terser is free open-source software released under the BSD 2-Clause License, authored by Mihai Bazon; the npm terser package latest 5.51.4 requires Node 10 or above. It is a JavaScript parser, mangler, compressor and beautifier toolkit for ES6+: it parses modern syntax into an AST, mangles local names, drops unreachable and unused code, rewrites and compresses expressions, and can beautify source back to readable formatting. The CLI takes input files, compression options and source-map settings, while the API lets bundlers and scripts parse, compress and print code programmatically. It carries on the uglify-es lineage for modern JavaScript and depends on acorn, commander, source-map-support and the @jridgewell/source-map package. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.

Frequently Asked Questions

Is Terser free?

It depends on the licence. Terser is released under the BSD 2-Clause License; author Mihai Bazon.

How much does Terser cost?

Terser is free open-source software released under the BSD 2-Clause License, authored by Mihai Bazon; the npm terser package latest 5.51.4 requires Node 10 or above. It is a JavaScript parser, mangler, compressor and beautifier toolkit for ES6+: it parses modern syntax into an AST, mangles local names, drops unreachable and unused code, rewrites and compresses expressions, and can beautify source back to readable formatting. The CLI takes input files, compression options and source-map settings, while the API lets bundlers and scripts parse, compress and print code programmatically. It carries on the uglify-es lineage for modern JavaScript and depends on acorn, commander, source-map-support and the @jridgewell/source-map package. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.

Where can I check Terser's current pricing?

On Terser's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.

What is Terser?

Source JavaScript parses into an AST, compression passes shorten names and drop dead code, the printer emits minified output paired with a source map, and bundler plugins call the same API to minify per chunk during production builds.

How does pricing work?

The toolkit installs free under the BSD 2-Clause license with no seat license; use it in CLI pipelines or as an API dependency, and commercial training or support would be outside the open-source project.

How does Terser compare with other tools in Dev Workflow & Productivity?

Terser is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.

ToolPricing modelKey pricing on filePrice checked
TerserOpen sourceTerser is free open-source software released under the BSD 2-Clause License, authored by Mihai Bazon; the npm terser package latest 5.51.4 requires Node 10 or above. It is a JavaScript parser, mangler, compressor and beautifier toolkit for ES6+: it parses modern syntax into an AST, mangles local names, drops unreachable and unused code, rewrites and compresses expressions, and can beautify source back to readable formatting. The CLI takes input files, compression options and source-map settings, while the API lets bundlers and scripts parse, compress and print code programmatically. It carries on the uglify-es lineage for modern JavaScript and depends on acorn, commander, source-map-support and the @jridgewell/source-map package. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
esbuildOpen sourceesbuild is free open-source software released under the MIT License, copyrighted 2020 by Evan Wallace. It bundles and minifies JavaScript, TypeScript, JSX and CSS in one tool: the Go implementation parses, transforms and generates code in parallel, and the single binary has no dependency-install overhead on cold starts. The CLI handles entry points, outfiles, formats, source maps and watch mode, while the JavaScript and Go APIs let other tools call the bundler and minifier programmatically. esbuild also serves as the dependency pre-bundler inside several higher-level dev servers, and it aims for low-level speed rather than the full plugin surface of general-purpose bundlers. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026
SWCOpen sourceSWC is free open-source software under the Apache License 2.0, copyright 2024 SWC contributors. It is a Rust-based platform for next-generation developer tools, centered on a transpiler that converts modern JavaScript and TypeScript, JSX and other syntax into code compatible with selected targets, and a minifier that compresses the output. Plugin and preset pipelines select transforms per project, and framework build tools call SWC as a compile stage instead of an interpreted JavaScript transformer. SWC is distributed through npm packages and prebuilt Rust binaries, and its core crates can be embedded in other Rust tools. Because it is Apache-2.0, redistribution and modification follow that permissive license including its patent grant terms. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).Nov 22, 2026

3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.

Full pricing breakdown

Terser: Terser is released under the BSD 2-Clause License; author Mihai Bazon. Check the official site for any hosted plan.

Open source does not always mean every hosted version is free.

Key pricing: Terser is free open-source software released under the BSD 2-Clause License, authored by Mihai Bazon; the npm terser package latest 5.51.4 requires Node 10 or above. It is a JavaScript parser, mangler, compressor and beautifier toolkit for ES6+: it parses modern syntax into an AST, mangles local names, drops unreachable and unused code, rewrites and compresses expressions, and can beautify source back to readable formatting. The CLI takes input files, compression options and source-map settings, while the API lets bundlers and scripts parse, compress and print code programmatically. It carries on the uglify-es lineage for modern JavaScript and depends on acorn, commander, source-map-support and the @jridgewell/source-map package. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).

Estimate your monthly bill with our calculator →Or build a full stack around your budget →

Pricing Guides & Comparisons

Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.

⭐ Rate this tool

How would you rate this tool?

🚀 Never Miss a New AI Coding Tool

Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.

Tool Information

  • Official Websiteterser.org
  • CategoryDev Workflow & Productivity
  • PricingOpen Source
  • Price checkedNov 22, 2026

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates