Image to Base64 | How to use and interpret results
Read image bytes as a copyable data URL for embedding experiments. It can help with small icons but neither compresses the image nor removes metadata.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Select one image and inspect the preview and output prefix. The result includes data:image/...;base64, so distinguish that URL header from the Base64 body if the destination needs only bytes.
Results and examples
A PNG produces a string beginning data:image/png;base64,. String length is not file byte length, so treat the displayed size estimate as approximate.
Worked example
A PNG produces a string beginning data:image/png;base64,. String length is not file byte length, so treat the displayed size estimate as approximate.
Limitations
- Metadata present in the original bytes remains encoded.
- Inlining large images increases document size and memory use.
Fields
| Field | Guidance and constraints |
|---|---|
| Image file | Check the unit and format displayed beside this field. |
| data URL (Base64) | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
How does a PNG data URL begin?
A PNG produces a string beginning data:image/png;base64,. String length is not file byte length, so treat the displayed size estimate as approximate.
Does Base64 remove photo metadata?
Metadata present in the original bytes remains encoded. Inlining large images increases document size and memory use.