Encode text to Base64 or decode Base64 back to text, with an option for URL-safe output. Text is treated as UTF-8, so non-English characters and emoji round-trip correctly. Runs in your browser; nothing is uploaded.
How to use
- Paste text (to encode) or a Base64 string (to decode) into Input.
- Tick URL-safe if the result will go into a URL, file name or token.
- Click Encode or Decode and copy the Output.
Standard vs URL-safe
Standard Base64 uses + and / and pads with =. URL-safe Base64 (used in JWTs and many APIs) replaces them with - and _ and drops the padding. When decoding, the tool accepts both forms, ignores whitespace and line breaks, and adds missing padding for you.
Limits
Decoding expects the result to be valid UTF-8 text. If the Base64 holds binary data, such as an image or a ZIP file, you see “Not valid Base64 (or not UTF-8 text).” To turn an image into a data URI, use image to Base64. Base64 is an encoding, not encryption: anyone can decode it, so don’t use it to hide secrets.
Related
URL encode and decode · JWT decoder · Image to Base64 · All tools
How we check
The behaviour described on this page was checked against the tool’s source code on 2026-11-19 (Asia/Colombo). Spotted a mistake? Contact us.