Base64 Encode/Decode

Encode and decode Base64

Input

Convert binary data or text to Base64 format and back. Essential for data transport in email (MIME) and JSON.

Terminal

Console ready. Execute a command to see output...

About Base64 Encode/Decode

Binary to Text

Base64 schemes represent binary data in an ASCII string format. It is commonly used to embed images in HTML (data:image/...) or send complex data via simple text protocols.

How it increases size

Base64 encoding increases the size of the data by approximately 33%. It takes 3 bytes of input and outputs 4 characters. This is why you shouldn't Base64 encode very large files if bandwidth is a concern.

How to use Base64 Encode/Decode

  1. Pick Encode or Decode
    Toggle the mode button at the top.
  2. Paste the input
    Either plain text (for Encode) or a Base64 string (for Decode) into the textarea.
  3. Hit the button
    The result is printed into the terminal panel.

Frequently Asked Questions

Encoding binary data as plain ASCII text so it can travel through text-only channels: email MIME, JSON, URLs, XML. Common in data:image/... URIs for embedding images in HTML/CSS, in Basic HTTP authentication, in JWT tokens (header and payload parts), in API payloads.