Base64 Encode & Decode
Convert text to Base64 and back, entirely in your browser.
Output appears here as you type.Text is processed in the browser and never sent to a server.
How to use
Four short steps to use Base64 Encode & Decode. No file uploads and no account needed.
- 1
Paste or type your text into the input box.
- 2
Choose Encode (text → Base64) or Decode (Base64 → text).
- 3
Enable URL-safe output when the result goes into a URL or filename.
- 4
Copy the result, or press Swap to feed it back as the next input.
Key features
- Full UTF-8 encode and decode — emoji and non-Latin scripts stay intact.
- URL-safe Base64 (- and _) for query strings and tokens.
- Clear error messages when the input is not valid Base64.
- Swap button for quick back-and-forth work.
- Everything runs in the browser; text is never sent to a server.
FAQ
Is my text uploaded anywhere?
No. Encoding and decoding run in the browser with JavaScript. No network request carries your text.
What is the difference between standard and URL-safe Base64?
Standard Base64 uses + and /, which must be escaped in URLs. The URL-safe variant uses - and _ and drops the = padding, so it can sit directly in an address.
Why did decoding fail?
Usually because the length is not a multiple of 4, a character is outside the Base64 alphabet, or the string was truncated. The tool shows that reason so you can fix it.
Can Base64 be used to store passwords?
No. Base64 is encoding, not encryption — anyone can reverse it. Use a dedicated password hash such as Argon2 or bcrypt on the server.
About Base64 Encode & Decode
Base64 Encode & Decode turns text into Base64 and back without sending anything to a server. It supports full UTF-8, so emoji and non-Latin scripts survive intact, plus the URL-safe variant used in query strings, filenames, and JWTs. When decoding fails, the tool explains why instead of returning an empty box. Handy for preparing data URLs, inspecting API payloads, or inlining small files into configuration.
Need something else? Browse the full catalog.
Back to catalog