Skip to content
ToolsOnDuty - free online tools
Security & Cryptography

URL-Safe Base64 Encoder & Decoder

Encode and decode Base64URL, the URL-safe Base64 variant.

Free browser toolRuns in your browserNo sign-up
Base64URL

100% private - runs entirely in your browser.

Your input, keys and passwords are never uploaded. Want proof? Load this page, then turn off your internet - the tool still works. For an exact check, open your browser's DevTools Network tab and confirm no data is sent when you use it.

About the URL-Safe Base64 Encoder & Decoder

Encode text to URL-safe Base64 (Base64URL) or decode it back, the variant used in JWTs and query strings.

Base64URL replaces + and / with - and _ and drops padding, so the result is safe to put in a URL.

Everything runs in your browser, so your data stays private.

Key features

  • Text to Base64URL and back
  • URL-safe characters, no padding
  • Open a file or paste your data
  • Copy the result instantly

How to use

  1. 1Choose encode or decode.
  2. 2Paste your text or Base64URL.
  3. 3Copy the converted result.

Examples

Encode
Input: Hello, world!
Output: SGVsbG8sIHdvcmxkIQ

No padding and URL-safe characters.

Decode
Input: SGVsbG8sIHdvcmxkIQ
Output: Hello, world!

Base64URL is decoded back into the original text.

Frequently asked questions

How is Base64URL different from Base64?
It swaps + and / for - and _ and removes = padding, so the value can be used in URLs and JWTs without escaping.
Where is Base64URL used?
It is used in JSON Web Tokens, URL parameters and anywhere Base64 needs to be URL safe.
Is my data uploaded?
No. The conversion runs entirely in your browser.

Open a related tool to prepare your files or refine the finished result.