Free online tool

Free Online URL Encoder and Decoder

Encode or decode URLs and query values with percent-encoding, choose the right mode for links, parts or forms, and break a web address into its parts.

URL Encoder and DecoderFree online tool. Runs in your browser.
Live

A web address can only contain a limited set of characters. Spaces, accents, ampersands, question marks and many other characters have to be replaced by a percent sign and two hexadecimal digits so that they travel safely. A space becomes %20, and an e with an acute accent becomes %C3%A9. This tool encodes and decodes those sequences, explains the different ways to do it, and breaks a full web address into readable parts. It all happens in your browser.

Choosing the right encoding mode

The most common mistake is encoding the wrong thing. A complete address should keep its structural characters, such as the colon after https, the slashes and the question mark, while a value inside it should have those characters protected. The tool offers four modes.

Mode Use it for Space becomes Keeps / ? & =
Parts of a link One query value or path piece %20 No, they are encoded
A whole link A full address with spaces or accents %20 Yes
Form data HTML form style (x-www-form-urlencoded) + No, they are encoded
Everything but letters and digits Strict encoding of every byte %20 No

How to use it

  1. On the Encode tab, type your text and choose the mode.
  2. Copy the result into your link, code or form.
  3. On the Decode tab, paste text with percent codes and choose whether plus signs mean spaces.
  4. On the Break a link apart tab, paste an address to see the scheme, host, port, path, query and fragment, with the query values decoded in a table.

A worked example

The text “café & crème: 50% off? yes/no”, encoded as a part of a link, becomes caf%C3%A9%20%26%20cr%C3%A8me%3A%2050%25%20off%3F%20yes%2Fno. Every character that could confuse an address is protected: the ampersand, the colon, the percent sign, the question mark and the slash. The two accented letters become two-byte UTF-8 sequences. In form mode, the same input uses plus signs for the spaces. Encoding the whole link https://example.com/a b?x=é gives https://example.com/a%20b?x=%C3%A9, which keeps the structure intact.

The plus sign confusion

In the part of an address after the question mark, many websites treat a plus sign as a space, because that is the rule for form submissions. In the path of an address, a plus sign is just a plus sign. A genuine plus in a value should therefore be written as %2B. When decoding, choose whether to turn plus signs into spaces according to where the text came from.

Decoding errors

A percent sign that is not followed by two hexadecimal digits is invalid, and the tool shows its position. Another problem occurs when the codes decode to bytes that are not valid UTF-8, such as a lone continuation byte, which usually means the text was cut off or encoded in an older character set. Rather than guessing, the tool reports it, so you can fix the source.

Taking an address apart

The parser splits an address into its scheme, user name, host, port, path, query and fragment. It never shows a password, only that one is present, and it never opens the address. Repeated names in the query, such as tag=a and tag=b, are listed separately, in order. This is helpful when tracking links contain many values and you want to see exactly what they say before you share or click them.

Practical tips

  • Encode each value separately, then join values with = and & yourself.
  • Never encode an address twice; it turns each percent sign into %25.
  • Keep readable addresses for people and encode only what is needed.
  • Check long marketing links for personal data before sharing them.
  • Test important links in a private window.

Limits

Text up to 500,000 characters is accepted. A broken character, such as half of an emoji, cannot be encoded and is reported. Internationalised domain names, which use a different method for the host part, are shown as the browser understands them and not converted by hand. This tool does not shorten or check the safety of links.

Next, you could encode binary data with the Base64 encoder and decoder, test patterns with the regex tester, or turn a link into a scannable code with the QR code generator. The guide on how to identify fake websites shows why reading addresses carefully matters, and the internet safety course builds the habit.

Debugging broken links

When a link works in one place and fails in another, decode it and read the result. Look for double encoding, a plus sign that became a space, an ampersand inside a value that split it in two, or a missing separator between values. Fix the value, encode it again once, and rebuild the link. Compare the parts table with what the receiving page expects, since a single missing name is often the whole problem.

Key takeaways

  • Percent-encoding replaces unsafe characters with % and two hex digits.
  • Use the parts mode for values and the whole link mode only for complete addresses.
  • Form encoding turns spaces into plus signs; other modes use %20.
  • Do not encode twice, or % becomes %25.
  • The parser shows the parts of a link without opening it.

Questions

What does %20 mean in a URL?

It is a percent-encoded space. Spaces are not allowed in web addresses, so they are written as a percent sign followed by 20, the hexadecimal code for a space. Other characters follow the same idea, for example %26 for an ampersand and %C3%A9 for the letter e with an acute accent.

What is the difference between encoding a whole link and encoding a part?

Encoding a whole link keeps characters that give an address its structure, such as the colon, slashes, question mark, equals sign and ampersand. Encoding a part, such as one query value, also protects those characters, so they cannot be mistaken for structure. Using the wrong mode is a common source of broken links.

Why do I see %25 in my link?

The text was encoded twice. The first pass turned a space into %20, and the second pass encoded the percent sign itself as %25, giving %2520. Decode once to undo the extra pass, and make sure your code or tool encodes only once.

Should a plus sign mean a space?

Only in form data, such as the query string of a submitted form. In other places a plus sign is simply a plus. When you want a real plus sign in a value, write it as %2B. The decoder lets you choose whether plus signs become spaces, depending on the source.

Does the tool open the links I paste?

No. It reads the text and splits it into parts, but it never opens, fetches or checks the address. That makes it safe for looking at suspicious links. A password inside the address is hidden and marked as present. Do not click links you do not trust.