What Base64 is for
Base64 turns text or binary data into a safe ASCII string. It's used to embed images in HTML/CSS as data URLs, carry binary in JSON API payloads, encode email attachments, and store parts of JWT tokens. This tool encodes and decodes both directions, including full Unicode and emoji.
Encode text or any file
Type or paste text to encode, or paste a Base64 string and decode it back. You can also pick a file (up to 5 MB) to convert into a Base64 data URL you can drop straight into code. The Swap button flips input and output so you can round-trip quickly.
Frequently asked questions
Does it support emoji and Hindi text?
Yes. It encodes full Unicode correctly, so emoji and non-Latin scripts round-trip without corruption.
Are my files uploaded?
No. Encoding and decoding happen entirely in your browser; files never leave your device.
Why did decoding fail?
The input wasn't valid Base64 — check for missing characters or stray spaces and try again.
Related tools
This tool runs entirely in your browser — nothing you enter is uploaded or stored.