JavaScript Bundle Analyzer
Analyse a JS bundle and its source map: size of every npm package and file, gzip size, nested duplicate packages and tips for heavy libraries.
Tool
About this tool
About JavaScript Bundle Analyzer
Why is your JavaScript so big? Drop in the built bundle (.js) and its source map (.js.map). The analyzer works out exactly how many bytes of the bundle come from each npm package and each source file, shows the gzipped size, finds packages bundled twice from inside other packages, and gives tips for known heavy libraries like moment, lodash and core-js. Without a source map it still detects well-known libraries.
How it works
Example
How to use this tool
- Build your app with source maps (webpack, Vite, Rollup, esbuild…).
- Choose the .js file and its .js.map.
- See the biggest packages and files; export the list.
Frequently asked questions
Is my code uploaded?
No. The files are read only in your browser.
Why do sizes differ from webpack-bundle-analyzer?
This tool measures the minified bundle bytes; some tools show sizes before minification. Gzip size is for the whole bundle.
Can I export the result?
Yes – download the result as CSV (opens in Excel and Google Sheets).
Does the JavaScript Bundle Analyzer send my data to a server?
No. The JavaScript Bundle Analyzer runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.