Skip to content
Developer & CodeLocal · Stays on device

Bundle Size Calculator

Measure raw, gzip and Brotli sizes of your files and estimate download time on common networks.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
bundle-size-calculatorOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

About this tool

Drop your built JavaScript, CSS or other files, paste code, or just type sizes. The tool compresses each file in your browser with the built-in CompressionStream to measure its gzip size (and Brotli where the browser supports it), shows each file's share of the total, and compares the total against a budget you set.

Download times are estimated for slow 3G, Lighthouse's mobile profile, good 4G, broadband and fibre, plus your own speed and round-trip time, using a simple stated model. Files are never uploaded. Everything runs in your browser. Nothing you enter is uploaded, logged or stored.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    In-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineIn-browser

How to use it

  1. 1

    Drop files, paste code or type sizes.

  2. 2

    Set a budget in KB.

  3. 3

    Compare transfer sizes and estimated download times.

Zero-upload architecture

How to use Bundle Size Calculator for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Bundle Size Calculator

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Set a budget in KB.

  3. 3

    Get your result

    Compare transfer sizes and estimated download times.

  • Local

    JavaScript Minifier

    Minify JavaScript with terser: compress, shorten local names and keep licence comments, with exact syntax errors and size savings.

    Open tool
  • Local

    CSS Minifier

    Minify CSS for production with csso: remove whitespace and comments, shorten colours and values, and merge rules, with before/after and gzip sizes.

    Open tool
  • Local

    JavaScript Formatter

    Beautify minified or messy JavaScript with configurable indentation and brace style, plus a syntax check that parses the code without running it.

    Open tool