Brotli File Compressor & Extractor
Compress any file to .br, or open and extract .br files back to the original — batch many files at once, pick a compression level, all in your browser with no upload.
Input
Brotli Files
Add files and press Compress to .br — each file becomes its own .br. Everything runs in your browser; nothing is uploaded.
Also available with
Guides
Compress any file into a .br, or open a .br file and get the original back. Both directions run entirely in your browser, so your files are never uploaded. You can drop in several files at once: each one is compressed or extracted separately, and you can download them one by one or all together as a .zip.
How to use it
- Choose a Mode: Compress files to .br or Decompress .br files.
- Drop your files into the box, or click to browse. You can add up to 20 files, 100 MB in total.
- When compressing, pick a Compression Level. Balanced (level 9) is a good default. Smallest file (level 11) is the
brotlicommand's default and squeezes out a few more percent, but it is many times slower on large files. - Press Compress to .br or Decompress, then download the results. When compressing, each row shows the before and after size and how much was saved.
What is a .br file?
A .br file is a single file compressed with Brotli, the algorithm Google designed for the web. Browsers accept it as an HTTP content encoding (Content-Encoding: br), so sites often ship pre-compressed app.js.br or styles.css.br files next to the originals. On text such as HTML, CSS, JavaScript and JSON it usually beats gzip by 15–25%.
Like .gz, a .br holds exactly one file and does not store its name. Decompressing app.js.br gives you app.js. If the name doesn't end in .br, the tool adds .out instead of guessing.
Why should I pre-compress web assets with Brotli?
A web server compressing on the fly usually uses a fast, low Brotli level so it doesn't slow down every response. If you compress your static files ahead of time at level 11 and let the server send the .br file directly (nginx's brotli_static on, or a CDN that serves pre-compressed assets), visitors download the smallest possible file and the server does no work per request.
Why did decompressing fail?
Brotli streams have no signature, so the tool can only tell they are valid by decoding them. If you picked a .gz, .zst, .xz or .zip by mistake, it says which format the file actually is. Otherwise the file is damaged or was cut short, or it isn't Brotli data.
What happens if I decompress a .tar.br?
You get the .tar archive that was inside it, and the tool flags that it's a tar. To list and extract the individual files, use the Tar File Creator.
Privacy
All compression and extraction happens locally in your browser, using a WebAssembly build of Google's Brotli library. No file is ever sent to a server.
Related tools
To compress or decode pasted text with Brotli and see the result as Base64, use the Brotli Compression Encoder/Decoder. For .gz files, use the Gzip File Compressor & Extractor.