Skip to main content

Find your next tool

Prepare, check, then export

Base64 Text Encoder & Decoder

Encode readable text as Base64 or recover UTF-8 text from an encoded value. Choose the standard or URL-safe alphabet and check the byte count before copying the result.

Loading text workspace…

Benefits

  • Handle Unicode text, including emoji and non-Latin scripts.
  • Reject malformed padding and invalid UTF-8 instead of inserting replacement characters.
  • Encode or decode individual files and batches using the same settings.

When this helps

  • Inspect an encoded text field returned by an API.
  • Prepare a UTF-8 test fixture with the alphabet an application expects.
  • Decode copied document text, then compare or export it as PDF.

How to use this tool

  1. Choose Text to Base64 or Base64 to text.
  2. Paste a value or import a UTF-8 TXT file. Choose the matching alphabet.
  3. For encoding, choose whether to include padding. Select Convert.
  4. Review the result, copy or download it, or select several files for a ZIP.

Base64 represents bytes; it does not keep a message secret

Base64 is a way to represent bytes using printable characters. Text first becomes UTF-8 bytes, which are then encoded. That extra step matters for accented letters, emoji and scripts such as Hindi: one visible character can use several bytes. The byte total in this workspace describes the UTF-8 data rather than the number of letters you can see in the editor.

The standard alphabet uses plus and slash characters. The URL-safe variant substitutes a hyphen and underscore. Choose the alphabet required by the application receiving the value; the decoder deliberately rejects characters from the other alphabet. A Base64 value is not a complete URL and this tool does not percent-decode it or extract fields from a token.

Padding fills the final group when the byte count is not divisible by three. Encoding can include or omit the equals signs. Decoding accepts correctly padded or unpadded input, but rejects misplaced padding, impossible lengths and nonzero unused bits. ASCII spaces, tabs and line breaks are ignored during decoding so a wrapped value can be pasted without manual cleanup.

Decoded bytes are not always text. An image, archive or PDF can be valid Base64 and still fail a UTF-8 text check. In that case, use the existing image decoder or an appropriate binary workflow rather than treating replacement symbols as a successful conversion. Base64 is also not encryption: anyone with the encoded value can recover its bytes. Keep credentials out of shared reports, and save important output before leaving the page.

Formats, limits and privacy

  • Up to 100,000 UTF-16 code units per input; UTF-8 TXT, JSON, CSV or TSV files up to 1 MiB.
  • Batch ZIP: up to 10 files, 5 MiB combined. Successful outputs and a numbered error report are kept together.
  • Document handoffs support results up to 100,000 code units without NULL characters. Larger results remain downloadable.
  • Text only: no binary-file extraction, data-URL parsing or token verification. Decoded bytes must be valid UTF-8.
  • A decoded BOM or NULL is preserved. NULL-containing output is downloadable, but document handoff buttons are unavailable.

These tools process text locally. There is no draft autosave. Download important work before leaving; temporary file handoffs expire after 30 minutes.

Frequently asked questions

Is Base64 encryption?

No. It is a reversible representation of bytes and requires no secret key.

Can it decode unpadded Base64?

Yes, when the length, alphabet and unused bits are valid. Incorrect explicit padding is rejected.

Why does an encoded image fail?

Image bytes are generally not UTF-8 text. Use MAXScanner’s existing Base64 to Image tool for image data.

Continue your document workflow

Use a Continue button inside the workspace to carry your text; these links open a fresh tool.