Image Compressor
Reduce image size with adjustable JPG or WebP quality.
Convert the bytes of an image into a data URL containing its media type and Base64 payload.
Loading workspace…
Preparing the controls for this tool. Your files have not been selected or uploaded.Working with many files? Open batch processing for supported operations. Batch uses its own basic options.
Your files stay on this device. Keep your original files and review the result before using it.
Your files and inputs are processed in your browser and are not uploaded. Download or copy results before leaving. Normal site and library requests still reach the hosting service.
A PNG data URL begins data:image/png;base64,. It can be used where an application accepts an image URL, such as an HTML img src attribute. This operation encodes original bytes; it does not resize or compress the image.
Base64 typically increases the binary payload size by about one third before the URL prefix. Large inline images can increase document size and cannot be cached independently. Embedding the data URL shares the complete image bytes, including any metadata already present.
No. Base64 is transport encoding and usually increases size. Compress or resize the image first if appropriate.
The text decoder expects UTF-8 text, not image bytes. Use the data URL directly in a compatible image viewer or application.
Files and inputs are processed locally in your browser and are not uploaded. The hosting service receives normal website and library requests. Download or copy results before leaving.
Your files stay on this device. Keep your original files and review the result before using it.