Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to plain text, with full UTF-8 support.
About the Base64 Encode / Decode
Encode plain text into Base64, or decode a Base64 string back into readable text.
How the Base64 Encode / Decode works
Base64 represents binary data using only 64 printable ASCII characters, which makes it safe to embed in places that don't handle raw binary well — email attachments, data URLs, JSON payloads, and API tokens. This tool is UTF-8 safe, so accented characters, emoji, and non-Latin scripts round-trip correctly rather than becoming garbled, which is a common issue with naive Base64 implementations.
How to use the Base64 Encode / Decode
- Choose Encode or Decode.
- Paste or type your text into the input field.
- Press Convert to see the result — click the copy icon to copy it.
Tips for the Base64 Encode / Decode
- Base64 is an encoding, not encryption — anyone can decode it, so don't use it to hide sensitive data.
Example: Base64 Encode / Decode
Encoding "Hello, World!"
- Mode: Encode
- Text: Hello, World!
Result: SGVsbG8sIFdvcmxkIQ==
Each group of 3 input bytes is mapped to 4 Base64 characters from a 64-character alphabet, with "=" padding added so the output length is a multiple of 4.
Related calculators
- URL Encode / DecodeTools & MoreEncode text for safe use in a URL, or decode a percent-encoded URL string back to plain text
- Password GeneratorTools & MoreGenerate strong, random passwords with customizable length and character sets, with an entropy-based strength estimate
- Word & Character CounterTools & MoreCount words, characters, sentences, and paragraphs in your text, with an estimated reading time
- Color ConverterTools & MoreConvert colors between HEX, RGB, and HSL formats with a live preview swatch