Skip to content
Pricing Failed solves are free. You only pay when it works. See prices

Free tools

Base64 and URL encoder

Encode or decode Base64, URL-safe Base64, percent-encoding and hex, and split a URL into its parts and query parameters.

Text

Base64

The result appears here as you type.

File to Base64

Choose a file to get it as Base64, for a JSON body or an inline image.

Split a URL

Paste a URL to see its parts and edit its query parameters.

When to use it

You've found a value that looks like gibberish in a cookie, a URL or a request body. Decode it here to see what it holds. Or encode a value before you put it in a URL or a header.

Which encoding is which

  • Base64 writes any bytes using 64 safe characters. It's how binary data travels inside JSON, headers and email.
  • Base64URL is the same, with - and _ in place of + and /, and usually no = padding. JWTs use it, and so do many of the passes that bot protection hands out.
  • URL component percent-encodes everything that isn't safe inside one query value or path segment. Use it for a single parameter.
  • Whole URL leaves alone the characters that give a URL its shape (:/?#&=) and encodes the rest. Use it on a complete address.
  • Hex writes each byte as two digits. HTML entities makes text safe to put inside a page.

When decoding fails

Text is treated as UTF-8 both ways, so accents, emoji and non-Latin scripts survive a round trip. If the decoded bytes aren't valid UTF-8, the value was probably binary, such as something compressed or encrypted. You get the bytes as hex instead of a page of broken characters.

Looks like Base64 but won't decode? It has often been encoded twice, or percent-encoded on top. Decode the outer layer first. A %3D at the end is a giveaway: it's a percent-encoded =.

Editing a query string

The URL splitter decodes every query parameter. You can change, add or remove them, and it writes the URL back with the right encoding. It's a quick way to see what a tracking link or an API call really carries.

Questions people ask

How do I decode a Base64 string?

Paste it and choose decode. If the result is text you will see it straight away. If it is binary, you get a hex view.

What is the difference between Base64 and Base64URL?

Base64URL swaps + and / for - and _ and usually drops the = padding, so the result is safe in a URL or a filename. JWTs use it.

When do I need to URL-encode something?

Whenever a value goes into a query string or a path and might contain spaces, ampersands, slashes or non-English characters. Encode each value on its own, not the whole URL.

Is Base64 encryption?

No. It is a way of writing bytes as text, and anyone can turn it back. Do not use it to hide anything.

Get started

Blocked by bot protection? $5 is 5,000 solves.

No subscriptionCredit never expiresFailed solves are free