Base encoder & decoder

Paste text or an encoded string into the input field, or pick a file. Three formats: standard Base64, Base64 URL-safe (using - and _ in place of + and /, no padding) and Base32 (RFC 4648). UTF-8 is handled correctly in both directions. When the decoded bytes are not valid UTF-8, use Decode to bytes (hex) for inspection or Download as file.

Text to encode, or an encoded string to decode.

Or pick a file to get its Base64 version: