Images tools

Compress and resize images, convert them to WebP, optimize SVGs, and turn images into Base64 data URIs and back. Your images are never uploaded.

Optimize 2

Convert 2

Making images smaller for the web

Images are usually the heaviest part of a web page, and the easiest to fix. The Image Compressor re-encodes a photo or a screenshot as WebP, JPEG or PNG at the quality you choose, and can limit the longer side to a maximum size while keeping the aspect ratio. Two settings do most of the work. Format: WebP is supported by every current browser and is usually much smaller than JPEG at the same visual quality; keep PNG for screenshots with sharp text and flat colors, where lossless compression keeps every edge clean. Max size: a layout rarely shows an image wider than 1920 px, so a 4000 × 3000 photo straight from a phone carries pixels nobody sees. The status bar shows the size before and after, so you can try a few settings and keep the best one. As an example, the 1200 × 630 social-preview image of this site goes from 44.7 KB to about 21 KB as WebP at quality 80.

Vector graphics need a different tool. SVG files exported from Illustrator, Figma or Inkscape contain editor metadata, comments, unused IDs and numbers with more decimals than a screen can show. The SVG Optimizer runs SVGO to remove them without changing how the image looks, and can also output a React component, ready to drop into a project as an icon.

Images as Base64 and data URIs

Image to Base64 turns an image into a data URI you can put directly in CSS, HTML or Markdown, which saves one request for a tiny icon. The cost is real, though: Base64 makes the image about a third larger, the bytes are repeated in every file that includes them, and the browser can no longer cache the image on its own. Use data URIs for small images only; the tool warns you when an image is too large for it to be worth it. The article on Base64 explains where the extra third comes from.

Base64 to Image goes the other way: paste a data URI or a bare Base64 string, for example from an API response or a log, and see and download the image. It reads the real format from the first bytes rather than trusting the label, and tells you when a string labelled image/jpeg is actually a PNG.

Your images are not uploaded

Screenshots often show more than intended: customer names, internal dashboards, tokens in a terminal. Many online compressors upload the file to a server to process it. These tools decode and encode the image in your browser, and the result is saved straight to your disk.