Base64 Encoder / Decoder
Handles Unicode properly (emoji and accents included), and will turn a dropped file into a ready-to-paste data URI.
Runs entirely in your browser โ nothing is uploaded to a server.
File to data URI
Drop any file to get a data: URI you can paste straight into CSS or HTML. Best for small images โ a data URI is about a third bigger than the file itself.
Drop a file here
or click to choose ยท images, fonts, anything
โFile
โOriginal
โAs data URI
Frequently asked
Does it handle emoji and accents?
Yes. It encodes as UTF-8 first, which is where most naive Base64 tools break.
What is a data URI used for?
Embedding a small image directly in CSS or HTML so the browser does not need a second request.