>
B's Code

Base64 / URL Encoder-Decoder

Encode and decode Base64, URL-safe Base64, and URL-encoded strings. Runs entirely in your browser.

[ INPUT ]
[ OUTPUT ]
// waiting for input

About Base64 / URL Encoder-Decoder

Base64 represents binary or text data using 64 ASCII characters; base64url is the URL-safe variant that swaps two of them and drops the padding; URL (percent) encoding escapes characters that have special meaning in a URL. This tool does both directions for each.

How to use it

  1. Choose base64, base64url, or url encoding.
  2. Paste your input.
  3. Switch between encode and decode as needed.
  4. Copy the converted output.

Frequently asked questions

Is Base64 encryption?
No. It is a reversible encoding, not encryption. Anyone can decode it, so never use it to protect secrets.
What is base64url, and when do I use it?
Standard Base64 uses plus and slash, which have meaning in URLs. The base64url variant substitutes minus and underscore and usually drops the trailing equals padding. Use the base64url mode for values that travel in URLs or JWT segments; use base64 when the target system expects the standard alphabet. Decoding in base64url mode accepts input with or without padding.
Does it handle Unicode?
Yes. Text is treated as UTF-8 before encoding.