Skip to content
Aback Tools Logo

Compress Tools

Compress files to GZIP, ZIP, and other archive formats entirely in your browser. No uploads, no server processing — all compression happens locally on your device for complete privacy.

Compress

132 tools in 14 subcategories

Analyzers

Compression Ratio Calculator
Enter original and compressed sizes to calculate compression ratio, space savings, percentage reduction, expansion factor, and bits per byte. Supports B/KB/MB/GB units with 6 preset examples. Free online compression ratio calculator, no signup required.
File Compression Ratio Analyzer
Upload any file and see its compressibility score — runs real GZIP, DEFLATE, and LZ77 compression with Shannon entropy analysis. Free online file compression ratio analyzer.
Entropy Analyzer
Calculate the Shannon entropy of any text or file — shows theoretical compression ceiling, incompressibility score (0–100), byte frequency distribution, and top symbols. Free online entropy analyzer, no signup required.
Base64 Size Overhead Calculator
Calculate exactly how much size Base64 encoding adds — shows raw vs Base64 vs Base64+GZIP size. Supports text input, file upload, and Base64 decode modes. Free online Base64 size calculator.
HTTP Response Size Analyzer
Paste HTTP response headers and body to see uncompressed vs GZIP vs Brotli size, validate Content-Encoding, check Vary headers, and get compression recommendations. Free online HTTP response size analyzer, no signup required.
Content-Encoding Header Generator
Generate the correct Content-Encoding, Vary, and Cache-Control headers for GZIP, Brotli, and Zstandard server responses — with Nginx, Apache, Express.js, and Cloudflare config snippets. Free online content-encoding header generator.
Accept-Encoding Header Analyzer
Paste an Accept-Encoding request header and decode which compression algorithms the client supports, q-values, and the optimal Content-Encoding to serve. Free online accept-encoding header analyzer, no signup required.
Image Format Picker
Upload any image to get a compression-guided recommendation for JPEG, WebP, AVIF, or PNG — shows estimated size savings, quality score, and browser support for each format. Free online image format picker, no signup required.
Image SSIM Quality Scorer
Upload original and compressed images to calculate SSIM score, PSNR, and MSE — quantifies quality loss from compression with per-channel R/G/B breakdown. Free online image SSIM quality scorer, no signup required.
Delta Compression Tool
Encode a binary delta between a base file and a target file — shows COPY vs INSERT instruction breakdown, delta size vs target size, and round-trip verification. Useful for understanding incremental update compression. Free online delta compression tool.
LZ77 Compression Visualizer
Visualize LZ77 sliding window compression step-by-step on any text input — see every (offset, length, next-char) token with interactive highlighting and plain-English explanations. Free online LZ77 compression visualizer, no signup required.
Archive Integrity Checker
Verify that a ZIP or GZIP archive is not corrupted — checks CRC32 checksums for all file entries client-side. Shows stored vs computed CRC32 per entry with OK / CORRUPTED status. Free online archive integrity checker.
Nginx Brotli Config Generator
Generate a production-ready Nginx Brotli compression configuration — configure compression level (1–11), brotli_static mode, MIME types, GZIP fallback, and installation method. Includes installation steps, curl verification, and pre-compression shell script. Free online Nginx Brotli config generator, no signup required.
Webpack Compression Plugin Config Generator
Generate a production-ready webpack.config.js snippet with GZIP and Brotli pre-compression using compression-webpack-plugin — configure levels, threshold, minRatio, asset patterns, and module format. Includes install command, Nginx serve snippet, and build verification. Free online webpack compression plugin config generator, no signup required.

Estimators

Brotli Compression Estimator
Estimate Brotli compression savings for any text payload and compare against GZIP and DEFLATE — shows exact byte savings, compression ratio, and bandwidth impact at scale. Free online Brotli compression estimator.
ZIP File Size Estimator
Estimate how small a set of files will compress to as ZIP — calculates Shannon entropy per file and predicts DEFLATE compression ratio. Free online ZIP size estimator, no signup required.
GZIP Compression Ratio Checker
Paste any text and instantly see GZIP compressed size, compression ratio, and byte savings — useful for API payload planning and HTTP transfer optimization. Free online GZIP ratio checker.
GZIP vs Brotli Savings Estimator
Compare GZIP and Brotli compression savings for any text payload side by side — exact GZIP results via CompressionStream API and estimated Brotli results based on RFC 7932 benchmarks. Free online GZIP vs Brotli estimator.
Service Worker Cache Size Estimator
Enter your service worker precache URL list to estimate total cache storage, GZIP and Brotli sizes per asset type, and get compression recommendations. Free online service worker cache size estimator, no signup required.
File Size Converter
Convert between bytes, KB, MB, GB, TB, and binary units (KiB, MiB, GiB, TiB) with decimal and binary mode toggle. Supports bits, bytes, and all standard storage units. Free online file size converter, no signup required.
Compression Type Recommender
Select your file type and use case to get the best compression algorithm recommendation — covers GZIP, Brotli, ZIP, WOFF2, and format-specific codecs for 25+ file types. Free online compression recommender, no signup required.
Run-Length Encoding (RLE) Tool
Encode and decode text using Run-Length Encoding — shows compression ratio, longest run, and a verdict on whether RLE is effective for your input. Free online RLE encoder decoder, no signup required.
REST API Response Size Estimator
Model an API endpoint's response payload and estimate compressed wire size across GZIP and Brotli at various client loads — shows daily bandwidth savings with cache hit rate modeling. Free online REST API response size estimator.
File Size Estimator After Compression
Predict compressed output size from file type, content entropy, and chosen algorithm — GZIP, Brotli, DEFLATE, LZ4, Zstandard, XZ. Covers 24 file types with confidence ratings. No upload needed. Free online file size estimator after compression.
Bandwidth Savings Calculator
Enter file size, compression ratio, and monthly requests to calculate exact monthly and annual bandwidth savings — plus CDN cost reduction across AWS CloudFront, Google Cloud CDN, Azure CDN, Cloudflare, Fastly, and BunnyCDN. Free online bandwidth savings calculator, no signup required.
Zstandard (ZSTD) Compression Estimator
Estimate Zstandard compression savings vs GZIP and Brotli for any text payload — shows all 7 compression levels (1–22) with size, savings percentage, and a level tradeoff table. Free online ZSTD compression estimator.
Dictionary Compression Simulator
Build a custom compression dictionary from sample data and compress a target string — shows dictionary vs GZIP vs dictionary+GZIP savings side by side. Free online dictionary compression simulator, no signup required.
Huffman Encoding Visualizer
Enter any text to build its Huffman tree, generate optimal prefix-free binary codes for each character, and see exact bit savings vs fixed 8-bit ASCII encoding — with interactive SVG tree and code table. Free online Huffman encoding visualizer, no signup required.
Compression Speed vs Size Tradeoff Visualizer
Visualize the GZIP and DEFLATE compression level vs size vs speed curve for levels 1–9 — enter file size and content type to see compressed sizes, speeds, and time-to-compress at each level. Helps choose optimal server config. Free online compression tradeoff visualizer, no upload needed.

Infrastructure

Nginx GZIP Config Generator
Generate optimized Nginx GZIP compression configuration with recommended MIME types, compression levels, proxy settings, and gzip_static support — ready-to-paste nginx.conf block with misconfiguration warnings. Free online nginx gzip config generator.
Next.js Compression Config Generator
Generate Next.js next.config.js or next.config.mjs with optimized GZIP and Brotli compression settings — supports Vercel, Node.js, Docker, and static export deployments with deployment-specific warnings. Free online Next.js compression config generator.
Cloudflare Compression Settings Guide
Generate Cloudflare-compatible compression settings — Brotli, Auto Minify, caching rules, Cache-Control headers, and a Worker script for custom compression headers. Covers all Cloudflare plans. Free online Cloudflare compression guide, no signup required.
Vite Compression Plugin Config Generator
Generate vite-plugin-compression configuration for pre-compressing Vite build assets to GZIP and Brotli — produces vite.config.ts with framework-specific imports and nginx serving config. Free online Vite compression config generator, no signup required.
CDN Cache-Control Header Builder
Build Cache-Control headers for compressed assets — sets max-age, s-maxage, stale-while-revalidate, and Vary: Accept-Encoding correctly. Config snippets for Nginx, Apache, Cloudflare, CloudFront, Fastly, and Vercel. Free online CDN cache-control header builder, no signup required.
Express.js Compression Middleware Generator
Generate Express.js compression middleware configuration using the compression npm package — configurable level, threshold, custom filter, and Vary header. CommonJS, ESM, and TypeScript output. Free online Express.js compression middleware generator.
Lambda@Edge Compression Script Generator
Generate a Lambda@Edge Node.js function for CloudFront that adds Brotli and GZIP compression — includes IAM trust policy, IAM execution policy, and AWS CLI deployment steps. Free online Lambda@Edge compression script generator.
CloudFront Compression Config Guide
Generate CloudFront behavior configuration for Brotli and GZIP compression — cache policies, response headers policies, and correct Cache-Control headers. Console steps, Terraform, CloudFormation, CDK, and AWS CLI output. Free online CloudFront compression config guide, no signup required.
Vercel Edge Compression Config
Generate Vercel configuration for serving compressed static assets with correct Cache-Control and Vary headers — vercel.json, next.config.js, or Edge Middleware output. Free online Vercel edge compression config generator.

Archive

Multi-Folder ZIP Creator
Bundle multiple folders into a ZIP archive that preserves your complete directory hierarchy — uses webkitdirectory folder picker and DEFLATE level 9 compression via fflate. Free online multi-folder ZIP creator.
TAR.GZ Creator
Bundle and compress multiple files into a .tar.gz archive entirely in the browser using fflate — GZIP level 9 compression, POSIX ustar format, instant download. Free online TAR.GZ creator.
GZIP Compressor
Compress any single file to .gz format using the native browser CompressionStream API — zero server needed. Shows original size, compressed size, and compression ratio. Free online GZIP compressor.
Binary File Compressor
Compress any binary file — executable, database, firmware, or document — to ZIP (fflate, levels 1–9) or GZIP (CompressionStream) in the browser. Shows compression ratio. Free online binary file compressor.
ZIP File Inspector
Open and browse the contents of any ZIP archive without extracting — see file names, sizes, compression ratios, and methods in a sortable, searchable table. Free online ZIP file inspector.
ZIP Merger
Merge multiple ZIP archives into a single ZIP in the browser — deduplicates files with identical paths (first-wins) and shows a full conflict report. Free online ZIP merger.
ZIP to TAR.GZ Converter
Convert a ZIP archive to TAR.GZ format entirely in your browser — extracts ZIP contents and re-packages them as a .tar.gz using fflate GZIP level 9. Free online ZIP to TAR.GZ converter.
ZIP Splitter
Split a large ZIP archive into multiple smaller ZIP parts of a configurable max size — entirely in your browser using JSZip. Presets from 1 MB to 100 MB, custom KB/MB input, independent extractable parts. Free online ZIP splitter.
DEFLATE Compressor
Compress data using raw DEFLATE algorithm and view output as binary download, hex string, or Base64 encoded string — entirely in your browser using fflate. Free online DEFLATE compressor.
NDJSON / JSONL Compressor
Compress NDJSON/JSONL log files using GZIP — shows line count, valid/invalid JSON lines, and compression ratio. Optionally minifies each JSON line before compression. Free online NDJSON JSONL compressor, no signup required.
HAR File Compressor
Compress HTTP Archive (HAR) files by removing response bodies, cookies, and headers — then GZIP compress for 80–95% size reduction. Shows per-entry analysis. Free online HAR file compressor, no signup required.

Text Compressors

LZ-String Text Compressor
Compress text using LZ77/LZ-String — ideal for localStorage, cookies, and URL state. Base64, UTF-16 (localStorage-optimised), and URI Component output. Decompression mode included. Free online LZ-String compressor.
LocalStorage Compression Helper
Compress a JSON object or string before storing in localStorage — shows space saved, UTF-16 char count, and % of 5 MB browser limit used. Ready-to-use code snippet included. Free online localStorage compression helper.
IndexedDB Payload Size Estimator
Estimate IndexedDB storage usage for JSON payloads using the structured clone algorithm — shows how much LZ-String compression reduces quota usage. Four-way size comparison with code snippet. Free online IndexedDB payload size estimator.
Cookie Data Compressor
Compress cookie value strings using LZ-String and instantly see whether the compressed value fits within the 4096-byte browser cookie limit. Real-time size bar, Set-Cookie header preview, Base64 and URI Component output. Free online cookie compressor.
Text Compressor (Base64 Output)
Compress any text with GZIP and encode to Base64 — produces a URL-safe compressed string for query params, cookies, and localStorage. Free online text compressor.
CSS Compressor
Compress CSS by removing whitespace, comments, redundant semicolons, and applying shorthand optimizations — hex color normalisation, zero-value shortening, font-weight shorthand. Free online CSS compressor.
HTML Compressor (Aggressive)
Maximum HTML compression — removes all optional whitespace, collapses boolean attributes, strips comments, removes optional closing tags, and inlines style/script whitespace. Free online aggressive HTML compressor.
Inline Asset Compressor
Compress inline SVGs, base64 images, and JSON data blocks embedded in HTML — shows per-asset savings and replaces each asset in the output HTML. Free online inline asset compressor.
CSS Compressor (Advanced)
Advanced CSS compression — merges duplicate selectors, removes vendor prefix duplicates, collapses shorthand properties, and strips all whitespace and comments. Free online advanced CSS compressor.
XML Compressor
Strip whitespace, comments, and CDATA sections from XML — configurable options, shows byte savings and compression ratio. Free online XML compressor.
CSV Compressor
Remove blank lines, trailing whitespace, and unnecessary quoting from CSV — configurable options, shows byte savings and row count. Free online CSV compressor.
Rust Compressor
Strip comments and whitespace from Rust source files — preserves raw string literals (r"...", r#"..."#) and doc comments (///, //!). Free online Rust compressor.
GraphQL Compressor
Remove whitespace and comments from GraphQL schema and query files — single-line collapse mode for persisted queries, shows wire-size savings. Free online GraphQL compressor.
GraphQL Response Compressor
Minify GraphQL query strings and estimate wire size with and without GZIP — four-way size comparison (plain/GZIP × original/minified), single-line APQ mode. Free online GraphQL response compressor.
TypeScript Compressor
Strip TypeScript type annotations, interfaces, type aliases, and generics to produce clean JavaScript — shows compiled JS size vs original TS size. Free online TypeScript compressor.
JSON Compressor (Whitespace Removal)
Remove all whitespace from JSON and show exact byte savings — also shows GZIP wire size for true API transfer savings. Validates JSON as a side effect. Free online JSON compressor.
Lottie JSON Compressor
Compress Lottie animation JSON files by removing hidden layers, unused assets, empty properties, and whitespace — shows per-optimization KB savings. Compatible with lottie-web, lottie-react, lottie-react-native. Free online Lottie JSON compressor.
JavaScript Compressor with Source Map
Minify JavaScript and generate a Source Map v3 file — download both the compressed .min.js and its .map file as a ZIP. Remove comments, collapse whitespace, remove console.log. Free online JS compressor with source map.
YAML Compressor
Remove comments and blank lines from YAML files — ideal for Kubernetes manifests, Helm charts, and CI/CD configs. Shows exact byte savings and line count reduction. Free online YAML compressor.
Markdown Compressor
Strip blank lines, trailing spaces, HTML comments, and optional syntax from Markdown files — shows byte savings and line count reduction. Free online Markdown compressor.
Go Compressor
Remove comments and blank lines from Go source files — preserves raw string literals, interpreted strings, and rune literals. Shows byte savings and line count reduction. Free online Go compressor.
Terraform HCL Compressor
Remove comments and blank lines from Terraform HCL files — preserves heredoc strings and template expressions. Shows byte savings and line count reduction. Free online Terraform HCL compressor.
Apache Config Compressor
Strip comments and whitespace from Apache .htaccess and httpd.conf files — preserves RewriteRule patterns. Shows byte savings and line count reduction. Free online Apache config compressor.
.htaccess Compressor
Remove comments and blank lines from .htaccess files — preserves RewriteRule patterns, shows byte savings, and includes directive analysis (RewriteRules, security headers, cache directives). Free online .htaccess compressor.
YAML to Compact JSON Compressor
Convert YAML to minified JSON — typically 20–40% smaller wire size for configuration delivery APIs. Uses js-yaml for accurate parsing. Multi-document YAML support. Free online YAML to compact JSON compressor.
PHP Compressor
Remove comments and whitespace from PHP scripts — preserves heredoc/nowdoc strings, shows size reduction and compression ratio. Free online PHP compressor.
C/C++ Compressor
Strip comments and whitespace from C and C++ source files — preserves string literals, character literals, C++11 raw strings, and preprocessor directives. Shows byte savings and line count reduction. Free online C/C++ compressor.
TSV Compressor
Compress TSV files by removing blank lines and normalizing whitespace — shows exact byte savings, row count reduction, and validates column consistency. Free online TSV compressor.
Swift Compressor
Remove comments and excess whitespace from Swift source files — preserves raw strings, multi-line strings, and nested block comments. 6 configurable options. Free online Swift compressor.
Kotlin Compressor
Strip comments and blank lines from Kotlin source files — removes single-line, multi-line, and KDoc comments while preserving string literals. Shows size savings and line count reduction. Free online Kotlin compressor.
R Script Compressor
Strip comments and excess whitespace from R scripts — preserves string literals, removes # comments, blank lines, and trailing whitespace. Shows size reduction and line count savings. Free online R script compressor.
Dockerfile Compressor
Consolidate RUN layers, remove comments, and compress Dockerfiles — reduces Docker image layer count and shows estimated layer size impact. Free online Dockerfile compressor.
TOML Compressor
Remove comments and blank lines from TOML config files — preserves all string literals and multi-line strings. Useful for embedded device configuration and CI/CD pipelines. Free online TOML compressor.
Nginx Config Compressor
Remove comments and excess whitespace from Nginx config files — preserves string literals, shows size savings for config management repos. Free online Nginx config compressor.
robots.txt Compressor
Strip comments, blank lines, and trailing whitespace from robots.txt files — shows exact byte savings, directive count, and User-agent group count. Free online robots.txt compressor.
Source Code Compressor (Multi-language)
Paste code in any language and auto-detect syntax to apply the correct comment/whitespace stripping — supports 28 languages including JS, Python, Go, Rust, Swift, SQL, YAML, TOML, and more. Free online multi-language code compressor.
WebSocket Message Compressor
Compress WebSocket message payloads using permessage-deflate (RFC 7692) simulation — shows exact byte savings and bandwidth impact at scale. Supports DEFLATE, GZIP, and zlib. Free online WebSocket compressor.
CSS Bundle Compressor
Upload a CSS bundle and compress it — shows minified size, exact GZIP size, and Brotli size with ready-to-use nginx and Apache server configuration snippets. Free online CSS bundle compressor.

Web Assets

Critical CSS Extractor & Compressor
Extract critical above-the-fold CSS from HTML and compress it for inline embedding — eliminates render-blocking CSS and improves LCP scores. Free online critical CSS extractor, no signup required.
Image Sprite Compressor
Upload a CSS sprite sheet PNG and recompress it using color palette quantization — shows KB savings for legacy sprite setups. Free online image sprite compressor, no signup required.
Email HTML Compressor
Compress HTML email code by removing whitespace, comments, and redundant inline styles — stays under Gmail 102 KB limit. Live size indicator. Free online email HTML compressor, no signup required.
SVG Animation Compressor
Compress SVG files containing SMIL animations — strips redundant animation keyframes, removes editor metadata (Inkscape/Illustrator/Sketch), and optimizes path data. Free online SVG animation compressor, no signup required.
WASM Binary Analyzer
Upload a WebAssembly .wasm file and analyze its section sizes — shows which sections (code, data, debug) contribute most to file size with optimization recommendations. Free online WASM binary analyzer, no signup required.
Source Map Compressor
Compress JavaScript and CSS source map (.map) files with GZIP and Brotli — shows size savings, parses source map metadata, and generates nginx, Apache, and CDN server configuration. Free online source map compressor, no signup required.
RSS Feed Compressor
Compress RSS and Atom XML feeds by removing whitespace and comments — reduces feed size for CDN caching cost and faster subscriber polling. Supports RSS 2.0 and Atom. Free online RSS feed compressor, no signup required.
Log File Compressor
Compress server log files (NGINX, Apache, CloudFront, IIS) to GZIP in the browser — log files achieve 85–95% compression. Useful for log archiving, sharing, and analysis prep. Free online log file compressor, no signup required.
OpenAPI / Swagger JSON Compressor
Compress OpenAPI 3.x and Swagger 2.0 JSON specs by removing descriptions, examples, and x- extensions — useful for SDK generation pipelines and API gateway imports. Free online OpenAPI compressor, no signup required.
Minecraft Map Compressor
Re-compress Minecraft world region files (.mca) at maximum ZLIB level 9 — reduces world size for sharing and backup. Fully compatible with Anvil format (Minecraft 1.2.1+). Free online Minecraft map compressor, no signup required.
WASM Size Optimizer
Strip debug sections, name tables, and build metadata from WebAssembly binaries — reduces deployable WASM size without affecting runtime functionality. Free online WASM size optimizer, no signup required.
AMP HTML Compressor
Compress AMP HTML pages by removing non-AMP compliant comments and excess whitespace — minifies style amp-custom while preserving AMP boilerplate. Includes AMP validation checks. Free online AMP HTML compressor.
3D Model Compressor (GLTF/GLB)
Compress GLTF/GLB 3D model files by removing metadata, minifying JSON, and stripping unused extensions — with full model analysis showing meshes, materials, and extensions. Free online GLTF/GLB compressor.

Font Compressors

TTF to WOFF Converter
Convert TTF and OTF fonts to WOFF format for legacy browser compatibility — lossless repackaging, batch conversion with ZIP download. Free online TTF to WOFF converter, no signup required.
OTF to WOFF2 Converter & Compressor
Convert OTF fonts to WOFF2 format for web delivery — Brotli compression reduces font size by 30–50% with full OpenType feature support. Free online otf to woff2 converter, no signup required.
WOFF to WOFF2 Compressor
Upgrade WOFF fonts to WOFF2 for 30% smaller file sizes and better browser compression support — uses Brotli compression. Free online WOFF to WOFF2 compressor, no signup required.
Icon Font Compressor
Compress icon fonts (Font Awesome, Material Icons, Bootstrap Icons) to only the icons you actually use — rebuilds the cmap table to remove unused glyph mappings. Free online icon font compressor, no signup required.
Variable Font Instancer
Reduce a variable font to a static instance — freeze axis values (weight, width, slant) and strip variable tables (fvar, gvar, HVAR) for a smaller static font. Free online variable font instancer, no signup required.
Google Fonts Subset Downloader
Enter a Google Font name and character set — downloads a locally-hostable WOFF2 subset for GDPR-safe self-hosting. Generates @font-face CSS snippet instantly. Free online Google Fonts subset downloader, no signup required.
Font Compression Comparison
Upload a TTF or OTF font and compare file sizes across TTF, WOFF, WOFF2, and subsetted WOFF2 side by side — with a download button for each format. Free online font compression comparison tool, no signup required.
Font Hinting Remover
Strip TrueType hinting instructions (cvt, fpgm, prep, hdmx, LTSH, VDMX, gasp) from TTF and OTF fonts — reduces file size by 2–15% with no visual impact on modern high-DPI screens. Free online font hinting remover, no signup required.
Font File Size Analyzer
Upload any font file (TTF, OTF, WOFF, WOFF2) and see file size, glyph count, table breakdown, OpenType feature list, and compression opportunity. Free online font file size analyzer.