Base64 Encode / Decode

Use this free Base64 encode/decode tool to convert text to Base64 and decode Base64 text back into UTF-8 locally in your browser.

All tools
Research-backed assumptions Formula steps Examples included Private in-browser use
Base64 encoded textSGVsbG8gdG9vbHM=

UTF-8 text to Base64

Input length
11
Output length
16
Mode
Encode

Formula steps

  1. Convert the text to UTF-8 bytes.
  2. Group bytes into 6-bit Base64 values.
  3. Add padding when the byte count is not a multiple of three.

How to use the base64 encode / decode

  1. Choose Encode for readable text or Decode for Base64 text.
  2. Enter the text, then press Run Base64 tool.
  3. Check the output length and mode before copying the result.
  4. Remember Base64 is encoding, not encryption.

Common uses

Encode a short text value into Base64.

Decode a Base64 string back to readable text.

Check API examples, headers, payloads, and data snippets.

Work locally without sending the text to a server.

Examples

Encode text Hello tools

SGVsbG8gdG9vbHM=

Decode text SGVsbG8gdG9vbHM=

Hello tools

Unicode text UTF-8 input

Base64 output with padding if needed

Frequently asked questions

Plain-language answers about when to use the tool, what it does with your inputs, what to double-check, and how privacy works.

When should I use the Base64 Encode / Decode?

Use it when your task matches one of these common needs: Encode a short text value into Base64. Decode a Base64 string back to readable text. It works best when you already know the values, dates, units, or settings the page asks for.

What is the Base64 Encode / Decode doing with my inputs?

In plain language: Base64 represents bytes using 64 printable characters and padding. This tool converts text to UTF-8 bytes before encoding and decodes valid UTF-8 after Base64 decoding. The examples on the page are there so you can compare your inputs with a filled-out calculation before copying the answer.

What should I double-check before trusting the answer?

Base64 is encoding, not encryption. Do not use it to hide secrets, passwords, tokens, or private data. Also check that you used the right unit, date, scale, or mode because small input changes can change the result.

Does the site save what I enter?

No. The calculator runs in your browser tab. Your recent answers stay only on the page while you use it, and they are not sent to a server.

Related tools