Base64
text ⇄ base64Encode and decode Base64, including files to data URIs.
Encoded output appears hereAbout Base64
Base64 rewrites arbitrary bytes using 64 printable characters, so binary data can travel through channels that only reliably carry text — HTTP headers, JSON string fields, email bodies, environment variables. Encoding and decoding both happen as you type, in either direction.
Text is treated as UTF-8, which is the detail most naive implementations get wrong: accented characters, non-Latin scripts, and emoji all survive a round trip here. Decoding accepts the URL-safe alphabet as well as the standard one, tolerates missing padding, and ignores stray line breaks — all three are common in real tokens and log files. If the decoded bytes turn out not to be text at all, it says so and shows the leading bytes as hex rather than printing nonsense.
There is also a file picker that turns any file into a data URI, ready to inline into CSS or an img tag. The file is read with the browser's own file API and never leaves your machine, which is also true of everything else on this page.
Common questions
This page does the work itself, in this tab. Nothing you paste is sent to a server. Close the tab and no copy remains.