BeanNestTools

Base64 text tool

Encode or decode without losing Unicode.

Work with UTF-8 text, switch between standard Base64 and Base64URL, and keep the source and result visible together.

Runs locallyStrict decodeNo remote URL fetch

Base64 workspace

Direction
Variant

Source

0 / 100,000 UTF-16 units · 0 UTF-8 bytes

Result

Updates as you type

UTF-8 first

Unicode text is converted to UTF-8 bytes before Base64 encoding, so café, 東京, and emoji round-trip correctly.

Strict decode

Malformed alphabet, padding, whitespace, or decoded bytes that are not valid UTF-8 are reported instead of silently repaired.

Base64URL details

Base64URL replaces + and / with - and _, and this tool emits the URL-safe form without = padding.

Encoding, not encryption

Base64 is reversible encoding. It does not encrypt data or provide integrity protection, so do not use it to protect secrets.

Text-only on purpose

This focused page handles text. Binary file Base64 needs different preview and download safeguards and is not hidden behind this simple workflow.

Keep checking

More developer tools

URL Encoder & Decoder

Encode or decode URL components and full URLs locally with explicit scope, malformed-percent errors, swap, and copy.

Open tool →

SHA-2 Hash Generator

Generate SHA-256, SHA-384, and SHA-512 fingerprints for local text or bounded local files using browser Web Crypto.

Open tool →

UUID v4 Generator

Generate one or up to 500 cryptographically secure UUID v4 values locally with regenerate and copy-all actions.

Open tool →

Working notes

How to use this tool

  1. Paste the UTF-8 text you want to encode, or paste a Base64 string you want to read.
  2. Choose standard Base64 or Base64URL output; Base64URL replaces + and / with URL-safe characters.
  3. Check the decoded preview before copying or downloading the result.
  4. Use the swap action to reverse the direction without retyping the value.

Limits to know

The tool encodes text, not arbitrary binary files. Standard Base64 and Base64URL are different alphabets, so a string produced for one form may be rejected by a strict decoder expecting the other. Decoding reports malformed input instead of guessing at missing padding.

What stays on this device

Encoding and decoding run in this tab. The text is not uploaded, written to the page address, or stored after you close the page.

Common questions

Why did my Base64 string fail to decode?

The input may contain characters outside the selected alphabet, missing padding, or data that was never valid Base64. Choose the matching alphabet and remove line breaks or stray characters, then decode again.

Does this encrypt my text?

No. Base64 is a reversible encoding, not encryption. Anyone with the output can read it, so do not use it to protect passwords, tokens, or personal data.