Base64 Encode

Convert text to Base64, decode Base64 back to readable text, and copy or download the result without sending data anywhere.

Input
1
Output
1
0 characters 0 lines

Base64 Encode and Decode

This Base64 tool converts plain text into Base64 and turns Base64 strings back into readable text. It is useful when you need to prepare data for APIs, inspect encoded values from logs, test request payloads, or move small snippets of data through text-only systems.

The conversion runs locally in your browser. The text you paste into the editor is not uploaded, stored, or sent to a server, so you can use the tool for quick checks without changing your workflow.

How to use

  1. Paste plain text or a Base64 value into the input editor.
  2. Choose Encode to create a Base64 string, or Decode to read an existing Base64 string.
  3. Check the output editor and status message. Invalid Base64 input is reported immediately when decoding fails.
  4. Use Copy for the clipboard, Download for a text file, or Clear to reset both editors.

What is Base64?

Base64 is a way to represent bytes as printable text. It uses letters, numbers, plus signs, slashes, and padding characters so binary data can travel through systems that expect ordinary text, such as JSON, HTML, email, configuration files, and command-line output.

Base64 is an encoding format, not encryption. Anyone can decode it if they have the string. It also increases the data size by roughly one third, so it is best for transport and embedding, not for compression or secrecy.

Input notes

Encoding supports normal text, including Unicode characters. When decoding, make sure the input is a complete Base64 string and does not include unrelated headers, labels, or extra text around the encoded value.

Example

The same value can be encoded and decoded back to its original text:

--- Plain Text ---
Hello, World!

--- Base64 Encoded ---
SGVsbG8sIFdvcmxkIQ==

--- Decoded Back ---
Hello, World!