Image to Base64 Converter
Turn a local image into a Base64 data URL you can copy or save as text. Encoding happens in your browser.
- Free
- No sign-up
- Runs in your browser
Choose an image to encode
Creates a Base64 data URL with the image's MIME type · 15 MB max · stays in your browser
How to convert an image to Base64
- Choose a JPEG, PNG, GIF, WebP, or another browser-readable image up to 15 MB.
- The tool reads the file and encodes its bytes in a local Web Worker.
- Copy the data URL or download it as a text file.
The output includes the image MIME type and the Base64 payload in a data: URL.
What does a Base64 data URL contain?
| Part | Example | Purpose |
|---|---|---|
| Media type | image/png | Identifies the image format |
| Encoding marker | ;base64, | Signals that following text encodes binary bytes |
| Payload | Base64 characters | Represents the original image bytes as text |
Base64 is larger than the original binary file and can make HTML or CSS documents much bigger. For large images, linking to a separate image file is usually more efficient.
Image input and output
The picker accepts image MIME types supported by the browser. The tool does not resize, recompress, or edit the image pixels; it encodes the original selected bytes. Files without a browser-provided image MIME type are rejected.
Check where your image is encoded
The selected bytes are transferred to a local Web Worker; they are not sent to a conversion server. The page itself may load advertising resources; see the privacy page for site-level details.
Known limitations
- One image at a time, limited to 15 MB. The generated Base64 text is about one-third larger than the input bytes.
- The browser-provided MIME type is used in the data URL; unknown image types may be labeled as
application/octet-stream. - This tool encodes the original file bytes, including any metadata already present in the image.
- Some consumers impose much smaller data URL limits than this tool's file limit.
Frequently asked questions
How do I convert an image to Base64?
Choose an image and copy the resulting data URL. The Base64 data represents the image's original file bytes.
Is a Base64 data URL the same as a Base64 string?
A data URL adds a media type and encoding marker before the Base64 string. This tool provides the full data URL.
Does Base64 reduce image file size?
No. Base64 text is larger than the original binary image and is best reserved for cases that specifically need inline data.
Is the image uploaded?
No. Encoding happens in a browser Web Worker; normal site resources still load.
Related tools
Tool details last reviewed 2026-11-01. See the changelog.