Encode and decode standard Base64 or Base64URL as you type. Input is UTF-8 text or HEX bytes. ASCII spaces and line breaks in Base64 are ignored. This is an encoding, not encryption, and the text stays in this page.

Encode and decode

Encoding

Decoding accepts missing padding. Standard and Base64URL alphabets are not mixed: + and / belong to standard Base64, and - and _ belong to Base64URL.

Public samples

These values can be checked with an independent Base64 implementation.

Source
RFC 4648 section 10, foobar
Input
UTF-8, 6 bytes, HEX 666f6f626172
Standard Base64
Zm9vYmFy
Padding sample
UTF-8 f, 1 byte, HEX 66, standard Base64 Zg==
Alphabet sample
HEX 14fb9c03d97e, standard FPucA9l+, Base64URL FPucA9l-