JavaScript Size Analyzer
See what your JavaScript weighs raw, minified with Terser and gzipped, how long it takes to download, whether it fits your budget, and which functions, strings and imports take the space.
See what your JavaScript weighs raw, minified with Terser and gzipped, how long it takes to download, whether it fits your budget, and which functions, strings and imports take the space.
About this tool
JavaScript Size Analyzer measures a script the way a visitor receives it and shows where the bytes go. Paste the code, open a .js file or drop one on the box. The code is parsed with Acorn, so a syntax error is reported with its line and column, and the tool tells you whether it is an ES module (import and export) or a classic script. The report gives the file size, its gzipped size, its size after minifying with Terser (two compression passes, shortened names, comments removed, the same minifier many build tools use), and the size after minifying and gzip, which is what visitors really download. Gzip is measured with your browser’s own compressor, not guessed. Set a budget in kilobytes, such as 50 KB for one script, and the result turns green or red. A table shows the download time on slow 3G, slow 4G, 4G and broadband, each with one round trip, both minified and not minified; the phone still has to parse and run the code after that. The Checks tab explains what to fix: console calls, debugger statements, comments taking a large share of the file, licence comments you may need to keep, inlined base64 images or fonts, long strings, imports whose size is added by your bundler, CommonJS require calls, whether the file is already minified, and the budget result. Biggest parts lists the top-level functions, classes and values by size, so you see at once that a big inlined image or one class is most of the file. Imports lists every import, including ones loaded later with import(), and Long strings lists strings over 300 bytes with their line. The Minified code tab shows Terser’s output to copy or download as a .min.js file. Big files are minified a moment after you stop typing. Your code is measured in your browser and never uploaded.

Paste, open or drop a .js file.
Raw, minified, gzipped.
Functions, strings, imports.
As .min.js.
Terser, as in build tools.
Measured, not estimated.
From slow 3G to broadband.
Green or red at a glance.
Biggest parts and strings.
Code stays in your browser.
Faster pages on real phones
Check a script before it ships.
Example470 B minified and gzipped.
Compare two small libraries.
ExamplePaste each build file.
Download time on slow 4G.
Example0.15 s on 1.6 Mbit/s.
Spot inlined images and data.
ExampleA 40 KB base64 icon.
No console or debugger left.
Example1 console call found.
See what minifying removes.
Example34% smaller.
Less to download, less to run
A base64 image is about a third larger than the file and cannot be cached on its own.
That is what crosses the network; set your budget on it.
Use import() for code needed only after a click.
Parsing and running code takes longer than downloading it on slow devices.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed JavaScript Size Analyzer and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 29 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.