Base64URL Encoder & Decoder

100% local. No uploads. No storage.

Runs in your browser Your data stays on your device No tracking
0 characters · 0 bytesUTF-8
0 charactersReady when you are
Ctrl + Enter
Only your browser sees your input.
Advanced options

Options apply to encoding text and files. Decoding accepts standard and URL-safe Base64, with or without padding, and ignores whitespace. Data URLs always use standard, padded Base64 without wrapping.

Saved you some time? Buy me a coffee ☕

Base64 vs Base64URL

Base64URL replaces the standard + and / characters with - and _. Padding uses the same = character, but many protocols omit it. This makes the alphabet useful in URLs and token formats. Follow the receiving protocol’s padding requirements.

  1. Paste text to encode. This page starts with URL-safe Base64 selected and padding disabled.
  2. For decoding, select Decode and paste a Base64URL value. Both padded and valid unpadded values are accepted.
  3. Copy or download the result. Use Advanced options to adjust padding, or Files to work with raw bytes.

Base64URL example

🐒 → standard: 8J+Qkg==URL-safe, unpadded: 8J-Qkg

Both values represent the same four UTF-8 bytes. Only the alphabet and padding convention differ.

Working with token segments

A JWT’s encoded header and payload use Base64URL and may contain readable JSON. Paste one encoded segment at a time; a complete dot-separated JWT is not one Base64URL string. Reading a payload does not verify its signature, issuer, or authenticity.

All conversions run locally in your browser. No input, files, filenames, or results are uploaded or saved by Base64Baboon. Copies and downloads you request are yours to manage. Read the privacy details. Base64 is encoding, not encryption.

THE SHORT ANSWERS

Base64URL FAQ

Is Base64URL the same as URL encoding?

No. Base64URL encodes bytes using a URL-safe alphabet. Percent encoding escapes characters using sequences such as %2F. This tool does not percent-decode input.

Is padding required?

It depends on the receiving format. This page defaults to unpadded output. Enable Include = padding if the protocol requires it. The decoder accepts either form when valid.

Can I decode Base64URL files?

Yes. Select Files → Base64 → File. The decoder accepts URL-safe binary data as well as standard Base64.

Work with the URL-safe Base64 alphabet. URL-safe output is enabled and padding is off by default; Decode accepts either alphabet.