Skip to content

An app to compute the min + gzip/brotli weight of source code, even when incomplete.

Notifications You must be signed in to change notification settings

arrow-js/min-gzip

Repository files navigation

min-gzip.com

This is a simple web app that allows you to copy and paste Typescript or JavaScript and see the size of the file after it has been minified + gzipped/brotlied. Although the code needs to be valid in order to be minified, the Typescript typings are automatically striped — so you can count on the resulting calculated sizes to be accurate.

This is particularly helpful when you are trying to optimize the size of your JavaScript bundle and need to understand which implementation techniques are the most size efficient when sent "over the wire".

👉 min-gzip.com

How to use

  1. Copy and paste your code into the text area.
  2. Check the min/gzip size in the header.

Things to know

Gzip and Brotli gain in their compression efficiency the larger the artifact so often it is helpful to copy and paste your entire file and then make adjustments to see the impact on total size.