Image ↔ Base64
Image to Base64 and back — privately
Embed small icons in CSS/HTML with data URLs, or recover an image from a Base64 string, without pasting secrets into a third-party encoder that logs requests.
Encode. Choose an image; get a full data: URL or raw Base64. Decode. Paste a data URL or raw Base64, preview, and download.
Frequently asked questions
Is my image uploaded?
No. FileReader runs locally.
What is a data URL?
A string like data:image/png;base64,… that embeds the file inline in HTML/CSS.
Size limits?
Very large images make huge strings and may slow the tab. Prefer compression for big photos.
Can I decode without the data: prefix?
Yes — paste raw Base64; we assume PNG unless a data URL specifies the MIME type.