Base64 Encoder & Decoder
Encode text or files to Base64 and decode Base64 back to text, with URL-safe output and data URI support.
Works offlineDeveloper
Uses - and _ instead of + and /, and drops the padding.
Produces data:…;base64,… ready to paste into src or CSS.
Plain text
Base64
Output appears here as you type.
About the base64 encoder & decoder
Converts in both directions with correct UTF-8 handling, so accented characters and emoji survive the round trip. A URL-safe mode swaps the +/ characters and drops padding for use in query strings and JWTs. Drop in a file to get a Base64 string or a ready-made data URI, and decoding a data URI gives you the file back.
This tool runs entirely in your browser. Nothing you type is uploaded, and it keeps working with no connection at all — including as an installed app.