Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 strings back to plain text �� three-step flow
Encode text to Base64 or decode Base64 strings back to plain text �� three-step flow
Three simple steps to encode or decode Base64 data
Type or paste your text into the Enter Your Text box. To encode, enter plain text; to decode, paste the Base64-encoded string. You can also click Load Sample for example data.
Click Encode to Base64 to convert your text to Base64 format, or Decode from Base64 to convert a Base64 string back to plain text. The result instantly appears in Stage 2 below.
Use Copy Result to copy the output. Click the swap button (diagonal arrows) to exchange input and output, useful when you need to re-encode a decoded result or vice versa.
To verify your Base64 encoding, encode your text, then decode the result. It should match your original input exactly.
Our encoder properly handles UTF-8 characters including emojis, accented letters, and CJK characters �� not just ASCII text.
If decoding fails, check for extra whitespace, missing padding characters (=), or characters outside the Base64 alphabet (A-Z, a-z, 0-9, +, /).
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format using a radix-64 representation. The name comes from its use of 64 characters: uppercase letters (A-Z), lowercase letters (a-z), digits (0-9), and two additional characters (usually + and /). The = character is used as padding when the input length is not a multiple of 3 bytes.
data:image/png;base64,... format.username:password in Base64 for the Authorization header.Several Base64 variants exist for different contexts. The standard variant uses + and / with = padding. Base64URL replaces + with - and / with _ for URL-safe encoding, and often omits padding. Our tool uses the standard variant, suitable for most general-purpose encoding needs.