Image compressor with quality and maximum-width controls

Try Image Compressor

Image Compressor inputs

Loading calculator. If this message stays visible, enable JavaScript and reload.

The image compressor creates a JPEG or WebP copy with a chosen quality setting and maximum width. Start with a JPEG, PNG or WebP source, process one image and compare the displayed file sizes. The quality control ranges from 1 to 100; it is not a percentage reduction in file size.

There is no exact-kilobyte target. Some files become smaller, while an already efficient source can produce a larger output. Save candidates separately, inspect the visible result and retain your original so you can choose a different balance later.

Worked example

Take a 4,000 × 3,000 px photo (12,000,000 pixels) and compress it with a maximum width of 1,600 px and quality 70. The width is scaled by 1,600 ÷ 4,000 = 0.4, so the height becomes 3,000 × 0.4 = 1,200 px and the output is 1,600 × 1,200 px — 1,920,000 pixels, 84% fewer pixels than the original. At quality 70, the encoder receives 70 ÷ 100 = 0.70. The tool then reports the actual output size in KiB, so compare it with the original file's size to see the saving for your own image.

How to use this image compressor

Choose a JPG, PNG or WebP file (up to 20 MiB), set a maximum width and a quality from 1 to 100, pick JPEG or WebP output, then press Process image and download the candidate. The defaults — 1,600 px, quality 70, WebP — are a good first test. The file is processed in your browser and never uploaded.

Related tools

Choosing image quality, width and output format

What does this image compressor do to a file?

The image compressor decodes the selected image, draws it to a browser canvas and encodes a new JPEG or WebP file. Its controls can change both the encoding setting and the pixel dimensions. These are two different ways the output may differ from the source.

Quality is supplied to the browser encoder as the entered value divided by 100. An entry of 70 passes 0.7. That is an encoder option, not a guarantee of 70 percent visual quality, 70 percent retained information or a particular number of bytes.

The maximum-width control can reduce dimensions while maintaining the source proportions. It does not enlarge an image that is already smaller than the requested width. There is no automatic search for the lowest setting that meets an upload form's limit.

The result gives output dimensions, original size, output size and format. Size is displayed in KiB, where one KiB is 1024 bytes. The page does not automatically calculate a compression percentage, publish a speed score or decide whether the result is visually acceptable.

Use the output as a candidate to review. The operation does not replace the original with a guaranteed improvement, and its name is not a promise that every run will produce fewer bytes.

How do I make and compare my first compressed copy?

  1. Select one supported image from your device.
  2. Set a maximum width appropriate to the intended use.
  3. Choose a quality value between 1 and 100.
  4. Select JPEG or WebP output.
  5. Choose Process image and read the result details.
  6. Download the candidate and compare it with the original.

The starting settings are a maximum width of 1600 pixels, quality 70 and WebP output. They are editable defaults. A screenshot containing small text may need a different choice from a large photograph used as a thumbnail.

For a useful first experiment, keep the chosen format and width unchanged while trying a second quality value. That makes it easier to see the effect of the quality control rather than mixing several changes in one comparison.

The download name adds -moneyor to the source name and uses the output format's extension. A source called sample.png exported as JPEG is named sample-moneyor.jpeg by the function. Duplicate-name handling can add another suffix in your browser or operating system.

The file download is the compressed image. A text result or screenshot of the size figures is only a record of the run. Open the saved image and inspect the parts that matter before using it in an upload, website or presentation.

How should I choose a quality value without guessing what it means?

Begin with a candidate that you can inspect in its intended context. Lower and higher values tell the encoder to use different quality settings, but the exact effect depends on the image and browser encoder. Do not interpret a setting as a universal quality measurement across all software.

Choose a small test sequence rather than changing the value randomly. For example, try 70, then 85 if fine detail is unsatisfactory, or 55 if the file remains too large and the first result looks acceptable. Those are trial settings, not recommended values for every asset.

CandidateHold constantChangeWhat to record
ASource, width, formatQuality 70Output bytes and visible issues
BSame source, width, formatQuality 85Whether added size preserves needed detail
CSame source, width, formatQuality 55Whether a smaller candidate remains usable

The table deliberately provides no invented file sizes. Run your own source to obtain the actual numbers. Keep the downloaded candidates labelled so an attractive result is not confused with an earlier, more heavily reduced version.

At quality 100, the tool still re-encodes the image. It does not restore detail lost in the source or guarantee an identical file. Choose the result that meets the destination's requirements with acceptable visible detail, rather than treating the highest number as automatically correct.

When should I reduce width as well as quality?

Reduce dimensions when the source has more pixels than the intended use needs. Keeping an unnecessarily large image while applying a very low encoding setting may not be the best trade-off for a small display area. Check the actual destination rather than assuming a fixed width suits every case.

The calculation uses the smaller of maximum width and original width. Height is rounded from original height × output width ÷ original width, with at least one output row. A 3000 × 2000 source capped at 1200 therefore becomes 1200 × 800. Capped at 800, it becomes 800 × 533.

If your goal is to compare encoding settings without resizing, choose a maximum width at least as large as the source width, provided the width control and output-area limit permit the intended dimensions. A 600 × 400 source remains 600 × 400 with a maximum width of 800.

There is no height field or crop selection. A wide rectangle stays proportional; entering a width does not make it a square. Use the Image Resizer when a width-focused workflow or PNG output is the better fit, and use an appropriate editor for a crop.

Keep the pixel and byte questions separate in your notes. A candidate can satisfy a width requirement and still exceed the destination's storage limit. Conversely, an extremely small file can lack the detail needed for the actual task.

Which input formats, output formats and limits apply?

Inputs are JPEG, PNG and WebP. The browser must be able to decode the selected file, and its reported MIME type must match one of those supported types. A renamed extension does not turn an unsupported source into a valid image.

The compressor's output selector offers JPEG and WebP. PNG export is not offered by this form. The shared image-processing function supports PNG for the separate resizer, but that does not add a PNG option to this compressor's interface.

Each source is limited to 20 MiB, meaning 20,971,520 bytes. The current error message says 20 MB, while the code uses the binary threshold. Maximum width must be a whole number from 1 to 8000, and quality must be a valid number from 1 to 100.

The output area cannot exceed 25,000,000 pixels. A 5000 × 5000 result reaches that ceiling; 6000 × 6000 exceeds it. Passing those limits does not guarantee that every browser has enough memory for the input and export.

GIF, SVG, HEIC, TIFF, RAW and PDF are not direct inputs here. If an image first needs to be taken from a PDF, use an appropriate conversion such as PDF to JPG and check that result before compressing it. This form has no multi-file queue or automatic folder processing.

How do I judge artifacts, transparency and file-size savings?

Compare the saved output at the size in which it will be used, then inspect important detail more closely. Look at small text, thin borders, faces, textured surfaces and smooth gradients. The relevant question is whether the candidate still communicates what the image needs to show.

For JPEG output, the tool first fills the canvas white. Transparent parts become white in the generated JPEG. If an asset must sit on a coloured background, check the format and the actual exported transparency rather than judging a preview against a white page.

This workflow exports a still canvas image. It does not preserve an animation sequence, provide frame controls or optimise each frame of an animated WebP. It also does not offer metadata-preservation or colour-profile management settings.

Original and output storage sizes provide a separate numerical comparison. For an illustrative pair of 800 KiB and 300 KiB, the reduction is 500 KiB. Dividing 500 by 800 and multiplying by 100 gives 62.5 percent. Those are sample arithmetic values, not a measured promise for any image submitted here.

The Percentage Calculator can assist with a chosen numerical comparison if its input definitions match your task. Record actual file sizes and keep the interpretation clear: a larger percentage saving is useful only when the output still meets the visual and destination requirements.

Can I compress to an exact size for an upload limit?

There is no target-byte field or iterative exact-size solver. You can adjust width, format and quality, then check the generated size. A setting of 50 does not mean 50 KB, and the same setting applied to two images does not imply equal output sizes.

Read the receiving service's requirements carefully. It may specify supported formats, maximum dimensions and a storage limit at the same time. If it requires a particular document photograph or application image, preserve the content and legibility those instructions require.

Check whether the stated unit is decimal or binary. The File Size Converter and Data Storage Converter can help interpret supported unit values. They do not make a file smaller or determine whether the destination will accept it.

Leave a sensible margin when a displayed size has been rounded. The compressor reports one decimal place in KiB, while an upload service can compare the exact number of bytes. A rounded figure close to a strict limit is not a guarantee of acceptance.

After uploading, inspect what the destination displays. Some services re-encode or crop an image themselves. Keep the candidate you submitted and the original, so you can identify where a later visual change occurred and prepare another version when needed.

Why can compression fail or produce a larger file?

A source may already use efficient encoding, and re-encoding or changing formats can increase its size. The tool does not compare alternatives and automatically keep the smaller original. Read both size lines before deciding whether to use the candidate.

A failure can instead arise from an unsupported type, excessive source size, invalid width or quality, an unreadable image or an oversized calculated output. Correct the specific problem reported rather than assuming every failure is solved by a lower quality value.

Canvas support and format export are also required. The function checks that the returned blob has the requested MIME type. If the browser cannot produce it, the tool reports an export error rather than silently assigning a misleading extension.

The inspected operation reads the selected file and creates the candidate in the browser. It does not post the image bytes to a compression endpoint. General page delivery and analytics remain separate practices, covered in the privacy policy. That scope does not establish confidentiality across every extension or managed device.

Preserve your original and try a small, ordinary test file when investigating an environment issue. If your browser cannot reliably process a large source, use an appropriate alternative workflow instead of repeatedly risking the only copy of an important asset.

Frequently asked questions

Is the image compressor quality value a percentage of file size?

No. It is an encoding option passed as the entered value divided by 100. Quality 70 does not mean an output equal to 70 percent of the source size. Read the actual size reported after processing and inspect the saved image.

Can I compress without changing pixel dimensions?

Yes, when the source dimensions fit the supported limits. Set maximum width at least as large as the original width so the tool does not reduce it. The image is still re-encoded, so unchanged dimensions do not mean an identical file or unchanged visible detail.

Why is PNG not available in the output selector?

This compressor offers JPEG and WebP. The separate Image Resizer offers PNG export, with a different width-focused workflow. Do not assume that a shared underlying function means every format is exposed on every form. Choose the page that provides the required output.

Can I guarantee an image under 100 KB?

There is no exact-size guarantee. Adjust quality, maximum width and format, then check the candidate against the receiving limit. If the required legibility cannot be maintained within that limit, review the destination’s instructions or use a more suitable preparation workflow.

Does quality 100 make a low-quality image clear again?

No. Re-encoding at a higher setting cannot reconstruct detail that the source no longer contains. Start from the best available original. Repeatedly compressing an already compressed candidate can make comparison harder and does not serve as a restoration process.

Can this preserve animation or optimise SVG artwork?

No. The supported input formats are JPEG, PNG and WebP, and the canvas export is a still image. There is no animation-frame workflow or SVG optimisation engine. Use a tool explicitly designed for those assets when their original behaviour must be retained.

Do I need to register or install an application?

The tool has no registration or installation step. Use its file selector, settings and download control in a suitable browser. Browser capabilities, memory and download permissions still affect the workflow, especially for large images or less common export support.

Should I delete the original after getting a smaller output?

Keep it. A smaller output may have reduced dimensions, lost fine detail or a different background treatment. Retaining the original lets you make a better candidate later and gives you a reference for judging whether the compressed version remains suitable.

Sources and method notes