Base64 Encode / Decode
Encode and decode Base64 text or convert files to data URIs.
File β Base64 data URI
Drop a file here or click to browse
Processed in your browser, never uploaded.
About this tool
Convert text to Base64 and back, or turn any file into a Base64 data URI. Text is encoded as UTF-8 bytes first, so emoji and accented characters round-trip without corruption.
Pasting a mystery Base64 string into the decoder is often the fastest way to see what a
system is sending. The file converter gives you a ready-made data: URI for
inlining a small icon or font. Everything runs in your browser tab, so nothing you paste or
drop is uploaded.
Frequently asked questions
- Does this handle emoji and non-English characters correctly?
- Yes. Text is encoded through UTF-8 (using TextEncoder/TextDecoder) before Base64 conversion, so emoji and accented characters survive a round trip. Naive btoa-based tools fail on non-ASCII input.
- Is my text or file uploaded anywhere?
- No. Encoding and decoding run as JavaScript in your browser, and dropped files are read and converted on your device. Nothing is transmitted.
- What is a Base64 data URI?
- A data URI embeds a file directly in text as data:<mimetype>;base64,<data>. It lets you inline small images or fonts into HTML, CSS or JSON without hosting a separate file.
Related tools
JSON Formatter π Format, validate and minify JSON with clear error messages. Unix Timestamp Converter π Convert Unix timestamps to dates and back, in seconds or milliseconds. JWT Decoder π Decode JWT header and payload without your token leaving the page. Diff Checker π Compare two texts and highlight changes line by line or word by word.