UTF-8 first
Unicode text is converted to UTF-8 bytes before Base64 encoding, so café, 東京, and emoji round-trip correctly.
Base64 text tool
Work with UTF-8 text, switch between standard Base64 and Base64URL, and keep the source and result visible together.
0 / 100,000 UTF-16 units · 0 UTF-8 bytes
Updates as you type
Quick feedback
One tap is enough. You can ignore this and keep working.
Thanks — that helps us improve.
Unicode text is converted to UTF-8 bytes before Base64 encoding, so café, 東京, and emoji round-trip correctly.
Malformed alphabet, padding, whitespace, or decoded bytes that are not valid UTF-8 are reported instead of silently repaired.
Base64URL replaces + and / with - and _, and this tool emits the URL-safe form without = padding.
Base64 is reversible encoding. It does not encrypt data or provide integrity protection, so do not use it to protect secrets.
This focused page handles text. Binary file Base64 needs different preview and download safeguards and is not hidden behind this simple workflow.
Keep checking
Encode or decode URL components and full URLs locally with explicit scope, malformed-percent errors, swap, and copy.
Open tool →Generate SHA-256, SHA-384, and SHA-512 fingerprints for local text or bounded local files using browser Web Crypto.
Open tool →Generate one or up to 500 cryptographically secure UUID v4 values locally with regenerate and copy-all actions.
Open tool →Working notes
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.
Encoding and decoding run in this tab. The text is not uploaded, written to the page address, or stored after you close the page.
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.
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.