Images and files
For the images and files you ship with a page or an ad: shrink one to a target size, or turn one into text.
Compress Image to Size
Pick a size such as 50 KB or 100 KB, drop one image or a batch, and get the best quality that fits, with a before and after slider.Targets from 20 KB to 1 MBBatch to one ZIPNever a larger fileFiles stay on your deviceOpen toolImage to Base64
Turn an image, audio file or font into a Base64 data URI, copy it as HTML, CSS, JSX, Markdown or JavaScript, and see what it costs in size.Data URI, HTML, CSS, JSShows the +33% costShrink to WebP firstFiles stay on your deviceOpen toolImage Converter
Convert PNG, JPG, WebP, GIF, BMP, AVIF, SVG or HEIC (in Safari) images to PNG, JPG or WebP, several at once, with a ZIP of the results.PNG, JPG and WebP both waysMany files, one ZIPQuality controlFiles stay on your deviceOpen toolImage Resizer
Resize an image by pixels, percent, print size or into a box, crop it to a 1200x630 Open Graph card, and resize a batch the same way.OG image 1200×630 presetPixels, percent, cm or inchesBatch to one ZIPFiles stay on your deviceOpen toolBase64 Decoder
Paste Base64 or a data URI to see the image, play the audio or read the text, download the file, or encode text to Base64.Base64 to image or textDetects the file typeEncode text or a fileFree · runs in your browserOpen toolsrcset & sizes Generator
Describe your image files and your layout, get a correct srcset and sizes string with img or picture markup, export the files themselves, and see which file each phone and desktop would load.sizes from your layoutAVIF, WebP and JPEG pictureMakes the files as a ZIPFree · runs in your browserOpen toolAspect Ratio Calculator
Type a width and a height to get the simplest ratio and its common name, work out the missing side for a new size, see how much object-fit: cover cuts, and copy the CSS.Ratio and its common nameResize without stretchingCrop loss and CSSFree · runs in your browserOpen tool