How to Reduce PDF File Size Without Ruining It
Why some PDFs are huge, the difference between lossless and image-based compression, and a checklist for getting under an email or upload limit.
Encode an image as a Base64 data URI for HTML, CSS or JSON.
The Image to Base64 supports PNG, JPG, WEBP, GIF, BMP, AVIF and (in most tools) HEIC and TIFF input. Processing uses the HTML canvas and WebAssembly libraries bundled with the site.
Also searched as: image to base64 · base64 image encoder · image to data uri · png to base64 · jpg to base64
The image is drawn onto an HTML canvas, transformed, and exported in the original or chosen format at full resolution.
Upload or enter a sample, try the different options, and compare the output with your original.
Limits depend on your device memory. Images up to about 50 megapixels work well on most computers; the site administrator can also set a maximum upload size.
Everything happens locally in your web browser. Your files and text are never uploaded to our server, so the tool also works for confidential material.
Yes. It is free to use with no account required.

Why some PDFs are huge, the difference between lossless and image-based compression, and a checklist for getting under an email or upload limit.

Cut out a product or portrait and get a transparent PNG or a clean white background — what works well in the browser, and how to fix the edges.

Make images smaller or larger for websites, forms and social media while keeping them sharp — what pixels, aspect ratio, DPI and compression really…
Open your tools in one tap from your home screen or desktop — fast, full-screen and free.
On iPhone or iPad: tap Share and then Add to Home Screen.