How to encode or decode Base64
Enter plain text in Encode mode and run the conversion to turn its UTF-8 bytes into Base64. To reverse the conversion, switch to Decode mode and paste Base64 or choose Use as input to reuse the encoded result.
Which Base64 format works here?
This tool uses the standard alphabet, including + and /. The encoder adds = padding where needed. The decoder accepts omitted padding and ignores ASCII whitespace, including line breaks in wrapped Base64.
Why can a valid Base64 string fail to decode?
Base64 can represent any bytes, including images or compressed files. This tool displays UTF-8 text and reports an error when the bytes cannot be read as UTF-8. Anyone who has your Base64 string can recover the original bytes.
Each action accepts up to 500,000 input characters.