Base64 Encode & Decode

The most common encoding for binary data to ASCII text. This tool does both encode and decode on one page — just pick a mode, paste your text, and click. Everything runs on your device, nothing is sent to a server.

The result will appear here…
or press Ctrl+Enter

Everything runs in your browser. Your data is never sent to our servers.

728 × 90Ad Space AvailablePlace your ad here

Example

Example Input

Hello

Example Output

SGVsbG8=

How to Use

  1. 1Choose Encode or Decode mode at the top.
  2. 2Type or paste your text into the Input field.
  3. 3Click the button (or press Ctrl+Enter) to process. The result appears in the Output field.
  4. 4Click Copy to copy the result, or "Swap input/output" to quickly reverse the operation.

About Base64

Base64 converts binary data into ASCII text using 64 characters (A–Z, a–z, 0–9, + and /). It is the de facto standard for embedding binary data in text, email, JSON, and data URLs.

How it works: every 3 bytes (24 bits) are split into four 6-bit groups, each mapped to one Base64 character. Output is padded with "=" when needed. The result is about 33% larger than the original.

Base64 is used for email attachments (MIME), inline images (data URIs), tokens, and storing binary data where only text is allowed. It is encoding (reversible), not encryption — it provides no security.

FAQ

Does Base64 secure my data?

No. Base64 is just an encoding anyone can reverse — not encryption. Do not use it to hide sensitive data; use encryption (e.g. AES) for that.

Can this Base64 tool both encode and decode?

Yes. This is a single page with a toggle — use Encode mode to transform text, and Decode mode to reverse it. No need for two separate pages.

Is my data sent to a server?

No. Base64 is processed entirely in your browser. The text you enter never leaves your device.

Related Tools

Related Categories