# Image compress > How small can your image get? Make a photo's file smaller and see how much you saved. It stays on your device. Compress a photo to a smaller JPEG, WebP or AVIF: pick a quality or a target size such as 100 kB, and see the saving before you download. Nothing is uploaded. - Page: https://how.box/image-compress/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/image-compress/?mode={mode}&kb={kb}&q={q}&t={t}&max={max} - `mode` (quality or size): quality (choose the quality) or size (reach a file size). Example: `size`. - `kb` (number 1 to 100000): Largest file size in kB (1000 bytes) in the size mode. Example: `100`. - `q` (whole number 1 to 100): Quality from 1 to 100. Example: `80`. - `t` (jpeg, webp or avif): File type: jpeg, webp or avif. Example: `jpeg`. - `max` (whole number 0 to 16384): Longest side in pixels; 0 keeps the size. Example: `0`. Example answer: https://how.box/image-compress/?mode=size&kb=100&q=80&t=jpeg&max=0 The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `image_compress_saving`: Works out how much a compressed image saved, from the file sizes in bytes. - MCP: POST https://how.box/mcp `tools/call` with `{"name":"image_compress_saving","arguments":{…}}`; input schema in https://how.box/agent-tools.json. ## How it works Photos are stored with lossy compression: the file keeps what the eye notices and drops fine detail it hardly sees. The quality setting decides how much is dropped. Your browser re-saves the picture on your own device, so nothing is sent anywhere. The saving is how much smaller the new file is: saving = (original size − new size) ÷ original size. A 1.4 MB photo that becomes 200 kB saved about 86 %. JPEG works everywhere; WebP and AVIF usually make the same picture smaller still, but only appear when your browser can write them. Shrinking the longest side saves even more, because there are fewer pixels to store. With a target file size the tool tries qualities for you: a higher quality makes a bigger file, so it halves the gap between a quality that fits and one that does not until it finds the highest that fits, in about seven tries. Only when even a low quality is too big does it shrink the picture, by about the square root of how much too big it is, because the file grows roughly with the number of pixels. Sizes count 1 kB as 1000 bytes. Compressing is a one-way step. Each lossy save costs a little quality, so keep your original, and expect almost no gain from a picture that is already small or compressed. Quality 70–85 is a good start for photos; sharp text and screenshots look better as PNG, which has no quality setting. ## FAQ **Is my image uploaded?** No. The image is opened and compressed in your browser and never leaves your device. **What quality should I choose?** For photos 70 to 85 usually looks the same as the original at a fraction of the size. Check the preview, and go lower only if you can still not see a difference. **Why did my file get bigger?** A picture that is already small or heavily compressed can grow when saved again, especially at high quality or from a PNG with flat colours. Lower the quality or keep the original. **Why is WebP or AVIF missing?** Browsers differ in what they can write. Only the file types your browser can save are offered; JPEG always works. **How do I get a photo under 100 kB?** Choose Compress by: File size and type 100 kB. The tool finds the highest quality that fits and makes the picture smaller only if it has to; the result shows the file size and quality it reached. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)