Base64 encoder & decoder
Convert text to Base64 and back instantly, including UTF-8 text and the URL-safe variant used by JWTs.
🔒 Processed in your browser only — your input is never sent to a server or stored.
How to use
- Choose Encode (text → Base64) or Decode (Base64 → text).
- Paste your input and the result appears below as you type.
- When encoding, turn on URL-safe to use - and _ instead of + and /, without = padding (base64url).
- Press Copy to copy the result, or ⇅ to move the result into the input and convert it back.
FAQ
Is my input sent to a server?
No. Encoding and decoding run entirely in your browser, and nothing is uploaded or stored. This tool does not create share links either.
Is Base64 encryption?
No. Base64 only rewrites bytes using 64 characters, and anyone can turn it back into the original. Never use it to hide passwords or keys.
Which character encoding is used for text?
Text is converted to UTF-8 bytes before encoding, and decoded output is read as UTF-8. Tools that use another character set will give different results for non-ASCII text.
What is URL-safe Base64 (base64url)?
A variant defined in RFC 4648 that replaces + and / with - and _ and usually drops the = padding, so the value can be used in URLs and file names. Each part of a JWT uses it. The decoder accepts both variants.
What if the decoded data is not text?
If the bytes are not valid UTF-8 (for example an image), the tool shows the byte count and the first 64 bytes in hexadecimal.
More tools
See all tools →JWT decoder
Paste a token to read its header and payload and see when it expires.Open →JSON formatter & validator
Pretty-print or minify JSON, and see exactly which line and column breaks it.Open →Unix timestamp converter
Turn timestamps into dates and back. Seconds vs. milliseconds is detected from the number of digits.Open →Cron expression parser
Explain a cron expression in plain words and see exactly when it will run next.Open →