Image to Base64
Turn an image into a Base64 data URL, ready to paste into HTML, CSS or JSON. Or turn a data URL back into an image.
Runs in your browser. Files stay on this device.
Open Image to Base64
Free, no account, no watermark and no daily limit.
How to use Image to Base64
- 1Drop an image, or click to choose it.
- 2Pick the format you need: data URL, plain Base64, an <img> tag or a CSS background.
- 3Copy it. To go the other way, switch to Decode and paste a data URL.
Questions
Why is the text bigger than the file?
Base64 uses 4 characters for every 3 bytes, so the text is about a third larger than the image.
When should I inline an image?
For small icons and logos, usually under 10 KB. Larger images load faster as normal files.
Is my image uploaded?
No. It is encoded in your browser and never leaves your device.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- ImagesAdd WatermarkStamp text or your logo on photos, in a corner or repeated across the image, on many images at once.
- ImagesFavicon GeneratorMake a favicon.ico and every app icon size from one image or a letter, with the HTML tags to paste in.
- ImagesImage CompressorMake JPG, PNG and WebP images smaller, with a size and quality preview before you save.
- ImagesImage ConverterTurn PNG, JPG, WebP, GIF, BMP, AVIF or SVG images into JPG, PNG or WebP.
- ImagesImage CropperCut an image down to the part you want, free or at a set shape like square or 16:9.