Skip to content
Blogiantic

URL Decoder & Encoder

Decode and encode URLs: percent-escapes to text, + as space, double encoding, and a link's query parameters decoded.

  • Free
  • No sign-up
  • Runs in your browser
Try:
https://shop.example.com/café/menu?q=café crème&tag=a&b&page=2#top

This link, part by part

Scheme
https
Host
shop.example.com
Path
/café/menu
Fragment
#top
Query parameters, decoded
ParameterValue (decoded)
qcafé crème
taga&b
page2

Runs in your browser. Nothing you type is uploaded or stored, and no sign-up is needed.

Updated

See it in action

  • caf%C3%A9%20cr%C3%A8me%20%E2%82%AC5

    café crème €5
  • Grüße & 50% off? (encode)

    Gr%C3%BC%C3%9Fe%20%26%2050%25%20off%3F
  • ?q=caf%C3%A9+cr%C3%A8me&tag=a%26b

    q = café crèmetag = a&b

This URL encoder and decoder turns percent-encoded text such as caf%C3%A9%20cr%C3%A8me back into café crème as you paste it, and the encoder side does the opposite. It decodes as UTF-8, can treat + as a space for form data, spots text that was encoded twice (%2520) and decodes it again in one tap, and breaks a whole link into its host, path and query parameters, each one decoded. If a % sequence is broken, it shows exactly where and why. Encoding comes in four modes: a single value (encodeURIComponent), strict RFC 3986, form data with + for spaces, and a whole URL (encodeURI). It is free, needs no sign-up, and nothing leaves your browser.

How to use it

  1. Paste a link or %-encoded text into the box. The decoded text appears below at once; for form data, tick + as space.

    A shop link with %C3%A9 escapes decoded to readable text by the URL decoder
  2. For a whole link, scroll to This link, part by part: the host, the path and every query parameter are shown decoded.

    A link broken into scheme, host, path, fragment and a table of decoded query parameters
  3. If the result still has %-escapes, the text was encoded twice: tap Decode again. To encode instead, choose Encode and pick a mode.

    A double-encoded file name with the Decode again button

Options

Decode or Encode
Encode decode URL online in one box: Decode turns %-escapes back into text; Encode turns text into a form that is safe inside a URL.
+ as space (form data)
Off by default, because in a URL path + is a plus sign. Tick it for HTML form data and query strings, where + means a space; the tool hints when your text contains +.
Encode as: component, strict RFC 3986, form, whole URL
Component (encodeURIComponent) for one query value or path segment; strict RFC 3986 also encodes ! ' ( ) *; form encoding writes spaces as +; whole URL (encodeURI) keeps : / ? # & = and the other characters that give a URL its structure.
Double-encoding check
When the decoded text still contains %-escapes (for example %2520 decodes to %20), the tool says so and Decode again finishes the job.
This link, part by part
For a full link, shows the scheme, host and port, the decoded path, the fragment and a table of every query parameter with its decoded value, using the same URL parser as your browser.
Exact errors
A % not followed by two hex digits, a cut-short multi-byte character or bytes from another character set (such as %E9 for é in Latin-1) are reported with their position.
Copy, download, swap
Copy the result, download it as a .txt file, or swap it back into the box in the other mode.

What URL encoding is

A URL may only contain a limited set of characters. Anything else, such as a space, an é, an emoji, or a character like & or ? used as data instead of structure, is written as one or more % signs followed by two hexadecimal digits: the bytes of the character in UTF-8. A space is %20, é is %C3%A9 and € is %E2%82%AC. An encoded URL is full of these escapes, and URL encoded text can look like caf%C3%A9%20cr%C3%A8me. This is called percent-encoding (or percent encoding) or URL encoding, and RFC 3986 defines it.

URL decoding reverses it: to decode URL text, each %XX becomes its byte again and the bytes are read as UTF-8 text. Upper- and lower-case hex digits mean the same thing (%c3%a9 = %C3%A9).

Source: IETF RFC 3986, Uniform Resource Identifier (URI): Generic Syntax, §2

Common percent-encoded characters

Letters A–Z and a–z, digits and - . _ ~ never need encoding: RFC 3986 calls them unreserved characters.

Characters and their UTF-8 percent-encoding (computed by this tool's encoder in strict RFC 3986 mode; component mode leaves ! ' ( ) * as they are)
CharacterEncoded
space%20 (or + in form data)
!%21
"%22
#%23
$%24
%%25
&%26
'%27
( )%28 %29
*%2A
+%2B
,%2C
/%2F
:%3A
;%3B
=%3D
?%3F
@%40
[ ]%5B %5D
é%C3%A9
ü%C3%BC
€%E2%82%AC
👋%F0%9F%91%8B

Which encoding to use

To encode URL parts correctly, pick the mode by what you are encoding. A common mistake is to encode a whole URL with component encoding (it turns https:// into https%3A%2F%2F) or a single value with whole-URL encoding (a & inside the value then splits it into two parameters).

The four encode modes on this page
ModeKeeps as isUse it for
Component (encodeURIComponent)A–Z a–z 0–9 - _ . ! ~ * ' ( )One query value or path segment, e.g. ?q=… — & = / ? # + are all encoded so they cannot break the URL
Strict RFC 3986A–Z a–z 0–9 - . _ ~APIs and signatures that need exactly the RFC 3986 unreserved set
Form (+ for spaces)A–Z a–z 0–9 * - . _ (space → +)Data sent like an HTML form (application/x-www-form-urlencoded)
Whole URL (encodeURI)Also : / ? # [ ] @ ! $ & ' ( ) * + , ; =A complete link that only has spaces or non-English letters to fix

Source: WHATWG URL Standard, §1.3 Percent-encoded bytes and §5 application/x-www-form-urlencoded

Plus signs, double encoding and other pitfalls

  • + means a space only in form data (application/x-www-form-urlencoded), which is how HTML forms and many query strings are written. In a path, + is just a plus. A real plus inside form data is written %2B.
  • Double encoding: when already-encoded text is encoded again, each % becomes %25, so %20 turns into %2520. Decoding once gives %20 back as text; this tool notices and offers Decode again.
  • Latin-1 escapes: older systems wrote é as %E9 (one byte). Modern URLs use UTF-8 (%C3%A9), so %E9 on its own is not valid UTF-8 and the decoder reports it instead of guessing.
  • A literal % sign must itself be encoded as %25; 50%off is not valid encoding, 50%25off is.

Decode a query string

To decode query string parameters, paste a full link: the tool breaks it into its parts with the same URL parser your browser uses. Every query parameter is listed with its decoded value, and repeated parameters (tag=a&tag=b) each get their own row, so you can decode link text such as a tracking link, a search URL or an API request at a glance.

Limits

  • Up to 2,000,000 characters.
  • Text is decoded as UTF-8, the encoding URLs use today; other character sets are reported as errors, not guessed.
  • The link breakdown needs a full URL with a scheme such as https:.

Questions

How do I decode a URL?

Paste it into the box: the decoded text appears at once. Tick + as space if it is form data or a query string that uses + for spaces.

What does %20 mean in a URL?

%20 is a space. The % is followed by the character's byte in hexadecimal: 20 is the code of the space character.

What is the difference between URL encode and URL decode?

URL encode turns characters such as spaces, & and é into %-escapes so they are safe in a link; URL decode turns the escapes back into the original text.

Why does my decoded URL still contain %20?

It was encoded twice: the % became %25, so a space became %2520. Tap Decode again.

Should I use encodeURI or encodeURIComponent?

encodeURIComponent for a single value you put into a URL, encodeURI only for a whole URL that is already structured. This page offers both, plus strict RFC 3986 and form encoding.

Why does a + turn into a space?

In form data a + stands for a space. The tool only does this when + as space is ticked, because in other parts of a URL + is a real plus.

Is this online URL decoder free?

Yes. Decode URL online, or use the online URL encode modes, in any browser, as often as you like, with no sign-up. It works as a URL decoder online on phones and computers alike.

Can I decrypt a URL here?

There is nothing to decrypt in a normal link: percent-encoding is not encryption, so to "decrypt URL" text you simply decode it, which this page does. A link that is really encrypted, or a shortened or protected link, cannot be read here; a page that offers to decrypt URL online without a key is only decoding it.

Is my data uploaded?

No. Decoding and encoding run in your browser, and nothing you paste is sent anywhere.

More free tools

AI tools for the same job