Base64 Encoder / Decoder
Encode text or any file to Base64 and decode back. UTF-8 safe, with URL-safe (base64url) and Data URL options for embedding in HTML or CSS.
Convert UTF-8 text to Base64 in either direction with live conversion as you type, or switch to file mode to drop in any binary file (image, PDF, font, etc.) and get its Base64 representation. Toggle URL-safe mode to use the base64url alphabet (- and _ instead of + and /, no padding) for tokens and JWT-style payloads. Toggle “Wrap as Data URL” to produce an data:<mime>;base64,… string ready to paste into an <img src> or CSS background-image: url(...).
All conversion runs locally in your browser — files are never uploaded.
or drop a file here