ClearPaste · Developer Tools
Base64 Encode / Decode
Last updated: August 28, 2026
Two buttons: encode text to Base64, or decode Base64 back. UTF-8 safe in both directions.
How it works
Encoding uses the UTF-8 bytes of your text, so emoji, Arabic, Chinese — any Unicode — survives the round trip. Decoding reverses it. Invalid Base64 produces a clear error rather than mojibake.
Use cases
Decoding tokens and config values you find in logs. Encoding data URLs. Checking what a Base64 string actually says before pasting it somewhere important.
Related tools
JSON Formatter & Validator URL Encoder / Decoder HTML Entity Escape / Unescape
Frequently asked questions
Is Base64 encryption?
No — it is encoding, not encryption. Anyone can decode it. Never treat Base64 as secret.
Does it handle emoji?
Yes — UTF-8 encoding is handled properly, unlike atob/btoa alone.
Why did decode fail?
The input is not valid Base64 — check for missing padding (=) or pasted whitespace quirks.