One Click Answers

Base64 Encoder / Decoder

Turn text into Base64, or Base64 back into text. Type and the answer appears.

Base64
 

Your input is processed in your browser and is not uploaded.

How to use it

  1. Choose Encode or Decode.
  2. Paste your text or Base64 into the input.
  3. Copy the result, or press Swap to send it back through the other direction.

Example

Input: Hello, World!

Result: SGVsbG8sIFdvcmxkIQ==

How it works

Text is first converted to UTF-8 bytes, then those bytes are written using the 64-character alphabet from RFC 4648. That is why accents and emoji survive a round trip.

The URL-safe option swaps + and / for - and _ and drops the = padding, as used in JWTs and URLs.

When decoding, spaces and line breaks are ignored, and both the standard and URL-safe alphabets are accepted.

Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect secrets.

Assumptions

Questions

Why does decoding say the bytes are not valid text?

The Base64 was valid, but what it encodes is binary data such as an image or file, not UTF-8 text.

Is my input uploaded?

No. Encoding and decoding happen in your browser and the text is never sent anywhere.

Last reviewed 2026-09-30.