converttexttools.com

Base64 Encode / Decode

Encode text to Base64 or decode Base64 back to readable text.

Words
0
Characters
0
No spaces
0
Sentences
0
Paragraphs
0
Reading time
0 sec

Private: this tool runs in your browser. No data is stored on this website. Learn more

What is the Base64 Encode / Decode?

Base64 is a way of writing any data using only 64 safe characters (A–Z, a–z, 0–9, + and /). It is used to send data through systems that only handle text — for example email attachments, data URLs, JSON web tokens (JWT) and API keys.

This tool encodes text to Base64 and decodes Base64 back to text. It is UTF-8 safe, so accented letters, other alphabets and emojis work correctly. When decoding, URL-safe Base64 (with - and _) and missing = padding are handled automatically.

Everything runs in your browser, so it’s safe for tokens and configuration values. Remember: Base64 is encoding, not encryption — anyone can decode it.

How to use the Base64 Encode / Decode

  1. Choose Encode or Decode.
  2. Paste your text or Base64 string.
  3. Copy the result, or press Swap to convert it back.

Examples

Input
Hello, World!
Output
SGVsbG8sIFdvcmxkIQ==

When to use it

  • Decoding JWT payloads and API responses
  • Encoding credentials for HTTP Basic Auth headers
  • Creating data URLs
  • Debugging email and web data

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is just an encoding. Anyone can decode it, so never use it to protect passwords or secrets.

Why does Base64 end with = or ==?

The = signs are padding, added so the length is a multiple of 4 characters.

What is URL-safe Base64?

A variant that uses - and _ instead of + and / so it can be used in URLs. This tool decodes both.

Why do I get “Invalid Base64”?

The text contains characters that are not Base64, is incomplete, or does not decode to valid UTF-8 text (for example, it is an image file).