MojoUtils

Base64 Encoder / Decoder

Encode or decode Base64 strings

Developer Tools

Options

Input

Output

Base64 Encoder/Decoder converts binary data to ASCII text and back. It's widely used in web development for embedding images in HTML/CSS, encoding data in JWTs, sending binary data in APIs, and storing complex data in text-based formats like JSON and XML.

How to Use

  1. 1Paste the text or Base64 string you want to convert.
  2. 2Click "Encode" to convert plain text to Base64.
  3. 3Click "Decode" to convert a Base64 string back to plain text.
  4. 4The output appears below immediately.
  5. 5Copy the result with the copy button.

Features

  • Encode any text to Base64
  • Decode Base64 strings back to plain text
  • Handles UTF-8 characters correctly
  • Runs entirely in your browser — private and secure
  • Free with no registration

Practical Examples

  • Decode the middle payload section of a JWT to inspect non-sensitive claims during authentication debugging.
  • Encode a short test string before sending it through an API field that expects Base64 text.
  • Check whether a webhook, email header, or configuration value is Base64 text or plain text.

Common Pitfalls

  • Base64 is not encryption. Anyone can decode it, so it should not be used to hide passwords or private data.
  • A decoding error often means the input is Base64URL, missing padding, or not Base64 at all.
  • Large binary files become roughly 33% larger after Base64 encoding.

Frequently Asked Questions