developer
Base64 Encode & Decode
Encode text to Base64 or decode Base64 back to plain text. Useful for tokens, data URIs, and debugging.
Tip: ⌘/Ctrl + Enter encodes the input.
How Base64 encoding works
Base64 converts binary or text into a limited alphabet of letters, digits, plus, slash, and padding. It is common in data URLs, basic auth headers, and some API fields. It is transport encoding, not confidentiality.
Steps
- Paste plain text to encode, or paste a Base64 string to decode.
- Click Encode or Decode.
- Copy the output into your application, header, or documentation.
- If decoding fails, remove line breaks or whitespace and try again.
Tips
- Never treat Base64 as encryption; anyone can decode it.
- URL-safe Base64 variants replace + and / and may omit padding.
- Large binary files are better handled in dedicated offline tools than in a text box.
Frequently asked questions
Is Base64 encryption?
No. Base64 is encoding, not encryption. Anyone can decode it. Do not use it to hide secrets.
Why do I get an error when decoding?
The input may not be valid Base64. Check for missing padding, spaces, or truncated strings.
Does this support Unicode text?
Yes. Text is converted with URI-safe handling so common Unicode characters survive encode and decode.