Home / Text / Encode and Decode

Encode and Decode

Base64 in either direction, run one way at a time with the result held in a separate box.

Encode and Decode — Runs locally

Actions

Copied! Error!
How to use

Using this tool

Encode and Decode encodes text to Base64 or decodes Base64 back to readable text. All of the work on Encode and Decode happens in this tab, so the values you enter or the files you open never travel to a server.


Controls on this page

Encode and Decode gives you Base64 Encode and Base64 Decode. The options listed below the input on Encode and Decode are the ones that change how the output is produced, and every one of them applies to a single run.


  • One action at a time.
  • UTF-8 text input.

How to use Encode and Decode

  1. Type or paste your content into the input box at the top of Encode and Decode.
  2. Pick the action on Encode and Decode that matches the job, for example Base64 Encode.
  3. Press Run on Encode and Decode and read the answer in the separate output box.
  4. Copy the finished text from Encode and Decode, then clear the boxes before starting the next one.

A worked example

Encode hello with the Base64 action and the result area shows aGVsbG8=; paste that string back, decode it, and the original word returns intact.


A closer look at Encode and Decode

Base64 exists to carry binary or arbitrary text through channels that only accept plain ASCII characters. Encoding then decoding returns the original text, which makes the pair a quick way to check a copied value. Padding equals signs are part of the format and should be kept when the string is pasted elsewhere.

Chinese and accented characters are converted as UTF-8 first, so a multibyte letter survives the round trip. Base64 is not encryption, and anyone who receives the string can decode it in their browser.


Putting Encode and Decode to work

Encode and Decode offers two actions only, Base64 Encode and Base64 Decode, applied to whatever sits in the input box. Encoding hello gives aGVsbG8=, and pasting that string back with Base64 Decode restores the original word.

The input is treated as UTF-8, so accented letters and Chinese characters survive the round trip. Decoding a string that was never encoded returns an error rather than a guess, which is the quickest way to spot a bad paste.


Where Encode and Decode helps

  • Packing text into a data field that only accepts safe characters.
  • Reading a Base64 value from a log or email header.
  • Checking that an encoded string decodes to the expected text.

Precision and limits

  • Decoding expects valid Base64; a stray character or a missing padding sign stops the conversion.
  • Multi-byte characters such as accented letters or Chinese text are encoded as UTF-8 before the Base64 step.
  • The result box is separate from the input, so the original text is kept until you overwrite it.

Frequently asked questions

Does it support Chinese text?

Yes, the input is treated as UTF-8, so Chinese characters encode and decode correctly.

What does the padding equals sign mean?

Base64 pads the output to a multiple of four characters; keep the padding when copying a value.

Can I decode a URL-safe Base64 string?

The decoder expects standard Base64, so replace - and _ with + and / before decoding.

Is the input uploaded anywhere?

No, both directions run inside the page.