▶ Subscribe on YouTube
Home / Tools / Developer Tools

Base64 Encode / Decode

Encode strings to Base64 or decode Base64 back to text.

Plain Text
Output
Result will appear here

What does this tool do?

Base64 is an encoding scheme that converts binary data — or any text — into a string of safe ASCII characters. It is used whenever you need to pass data through a system designed only for text, such as email, HTTP headers, or HTML attributes. You have probably seen it in JWT tokens (the middle section is Base64-encoded JSON), in HTTP Basic Authentication headers, and in data URLs that embed images directly into a webpage.

How to use it

  1. Type or paste your text into the input field.
  2. Click Encode to convert it to a Base64 string.
  3. Or paste a Base64 string and click Decode to get the original text back.
  4. Copy the result with one click.

Pro tips

  • Base64 encoding increases data size by about 33% — do not use it for large files.
  • Base64 is encoding, not encryption. Anyone can decode it. Never use it to hide sensitive data.
Example

Encode the text: Hello, World!

Base64 output: SGVsbG8sIFdvcmxkIQ==

Paste that back and click Decode to get Hello, World! again.

When would you use this?

  • Reading the payload of a JWT token (the middle part between the two dots)
  • Embedding a small image in a CSS or HTML file as a data URL
  • Decoding HTTP Basic Authentication credentials from an Authorization header
  • Encoding binary data so it can be safely stored in a JSON or XML field