Pixels, DPI and Why Your Image Is Too Big
Pixels are the only dimension an image really has. DPI is a printing instruction, aspect ratio decides what…
Converts between compression ratio, percentage saved and bits per byte, and works out the bandwidth and transfer time a saving buys.
The Compression Ratio Calculator converts between compression ratio, percentage saved and bits per byte, and works out the bandwidth and transfer time a saving buys. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.
| Ratio | Original ÷ compressed, written as 3:1 |
|---|---|
| Space saving | 1 − compressed ÷ original, written as 67% |
| Bits per byte | 8 means no compression; text usually lands near 2 |
| They are reciprocals | 2:1 is the same as 50% saved |
This tool uses compression ratio = original ÷ compressed, space saving = 1 − compressed ÷ original, and bits per byte = 8 × compressed ÷ original. Every intermediate value is shown on screen, so the result can be checked by hand.
Arithmetic on the two sizes you enter. Bandwidth and time figures assume every transfer is the whole file and ignore HTTP overhead, caching and connection setup.
Pixels are the only dimension an image really has. DPI is a printing instruction, aspect ratio decides what…
Converts Unix epoch timestamps to human-readable dates in any time zone, and dates back to…
Calculates network address, broadcast, usable host range, wildcard mask and host count from an…
Converts IPv4 addresses between dotted decimal, integer, binary and hexadecimal notation.
Compares two semantic versions and says which is newer, what level of change it is, and…
Works out how long a DNS change takes to be seen everywhere, from the TTL that was published…
Works out what an LLM feature costs per call, month and year, including what prompt caching…
Works out how many conversation turns fit in a context window once the system prompt, tools…
Estimates what embedding a corpus costs, how many chunks it produces, and how much vector…
Formats, indents and validates JSON with precise error positions, key sorting and a…
Checks whether JSON is valid and reports the exact line, column and reason for the first error…