Image to Base64
A data URI, raw Base64, or ready HTML, CSS, Markdown and JSON for one image or many, optionally shrunk first
Runs on your device
How to use Image to Base64
Add your files: drop them on the page, or press the button to choose them.
Set the options: “Give me”, “Re-encode first” and “SVG as URL-encoded text”. Reset puts them back.
Press Process files, then download the result.
About Image to Base64
A data URI, raw Base64, or ready HTML, CSS, Markdown and JSON for one image or many, optionally shrunk first.
Image to Base64: common questions
Is Image to Base64 free?
Yes. There's no sign-up, no limit on how often you use it and no watermark.
Are your files uploaded anywhere?
No. Image to Base64 works on this device only, so your files stay private. You can even turn off the internet once the page is open.
Which files does it take?
Images (JPG, PNG, WebP, GIF, AVIF, HEIC and more). You can add several at once. Very large files can be slow on older phones, since your own device does the work.
What can I change?
7 settings, including “Give me”, “Re-encode first” and “SVG as URL-encoded text”. Every setting has a sensible default, and Reset puts them all back.
Does it work on a phone?
Yes, in any current browser on Android, iPhone, iPad and desktop.
More images tools
- Convert ImagesAny picture to JPG, PNG, WebP, AVIF, JPEG XL, GIF, BMP, TIFF or ICO, from HEIC, SVG and the rest too, in bulk, with a size cap
- Image ResizerResize by percent, width, height, exact size, a common size or print size in cm or inches; several sizes at once for srcset and @2x; Lanczos or pixel-art resampling
- Image CompressorSmaller JPG, WebP and PNG files; MozJPEG for the best JPGs
- Compress Image to a Size (KB)Hit an exact file size or a range (20–50 KB for exam forms): JPG, WebP, AVIF, JPEG XL or PNG, exact pixel size if a form asks, and a tick for each file that lands in range
- Crop ImageCrop by dragging a box on the photo, or to a shape (1:1, 4:5, 9:16 and more) from any side, with exact numbers
- Rotate ImageRotate by 90°, 180° or any angle, straighten a tilted photo (corners cropped away), and flip in the same step
- Flip ImageMirror an image horizontally or vertically
- Image EnlargerMake small images bigger: by 2×–16× or to an exact width, with Lanczos, bicubic or pixel-art scaling and light sharpening
- AI Image UpscalerEnlarge photos 2×–16× with an AI model (Real-ESRGAN) that redraws sharp detail, on your device: a 5 MB model downloads once, then it works offline
- Make Image SquareFit any photo in a square without cropping: colour or blurred background
- Add Padding / Extend CanvasAdd space around an image, on every side or just one, in pixels or percent, filled with a colour, see-through, a blurred copy or the stretched edges
- Passport Photo MakerCrop to a country's passport or visa size at 300 or 600 DPI, lay out copies on a 4×6, 5×7, A4 or Letter sheet with cut lines, and keep the file under a size limit for online forms