free web tracker
URL Encoder / Decoder

URL Encoder / Decoder

Make any URL safe to share, or turn an encoded link back into readable text. Paste a URL once and get both the encoded and decoded version, ready to copy.

  • 100% Free
  • No Registration
  • Accurate Results
  • Fast & Secure

Enter the text that you wish to encode or decode:


About URL Encoder / Decoder

URLs are only allowed to contain certain characters, so anything outside that set has to be rewritten before a link will work. That rewriting is called URL encoding: unsafe characters are replaced with percent codes, so a space becomes %20 and an ampersand becomes %26. The URL Encoder Decoder does that conversion both ways. Paste a URL once and the tool returns the encoded version and the decoded version together, so you can copy whichever one you need. It is a small utility that fixes a surprising number of broken links, failed shares, and confusing addresses.

Why encoding exists

Browsers and servers read a URL character by character, and some characters have special jobs. A question mark starts the query string, an ampersand separates parameters, and a hash mark jumps to a section of the page. When those characters appear as part of the actual data, such as a search term or a file name, they have to be encoded so the browser does not mistake them for instructions. Spaces are the most common problem, since a space is not a valid URL character at all. Encoding turns the whole address into a safe string that any browser, email client, or script can pass along without breaking it.

When to encode a URL

Encode a URL before you share it anywhere it might be cut off or mangled. Email clients and chat apps often break a link at the first space, so a long address with spaces in it arrives as a dead fragment. Scripts and tracking systems can also misread unencoded parameters. Encoding is also needed when a URL contains non-English characters, since those must be percent-encoded to travel safely across systems. If you build links with query strings, encode the parameter values, not the whole address, so the structure characters stay intact and only the data gets converted.

When to decode a URL

Decode a URL when you receive a link full of percent codes and want to read what it actually says. A decoded address shows the real words, which helps you confirm the link goes where it claims to go before you click it. Decoding also helps when you debug a link that fails: comparing the encoded and decoded versions shows whether a character was converted wrongly or a parameter was mangled in transit. Marketers and analysts decode links to read tracking parameters, since the campaign names and source tags are hidden inside the percent codes until the address is decoded.

Reading percent codes

Every percent code is a percent sign followed by two hexadecimal digits that stand for one character. %20 is a space, %3A is a colon, %2F is a slash, and %3F is a question mark. You do not need to memorise the table, but knowing the pattern helps you recognise an encoded address at a glance and spot when something looks wrong. One common mistake is double encoding, where an address that is already encoded gets encoded again, turning %20 into %2520. The result points nowhere useful, and the fix is to decode it once to restore the single-encoded version.

Common mistakes to avoid

The most frequent error is encoding the entire URL including the colons and slashes that hold its structure together. Encode only the parts that need it, usually the parameter values and any path segments with spaces or special characters. Another mistake is mixing encoded and unencoded parts in the same address, which confuses some servers. A third is assuming encoding changes the destination: it does not. An encoded URL and its decoded version open the same page, because encoding only changes how the characters are written. If a link fails after encoding, the problem is usually a character that was encoded twice or a parameter that was left unencoded.

Improve Your Website's SEO Today

Use our free SEO tools to analyze, fix and grow your website.

Explore All Tools

Frequently Asked Questions

URL encoding replaces characters that are not safe in a link, such as spaces, with percent codes like %20. Browsers and servers understand the encoded version, so the link works everywhere.

Encode a URL before sharing it in an email, a message, or a script when it contains spaces, symbols, or non-English characters. Encoding stops the link from breaking or being cut off at the first space.

Decode a URL when you receive a link full of percent codes and want to read what it actually says. Decoding also helps you spot tracking parameters and check that a link goes where it claims to go.

No. Encoding only changes how the characters are written, not the destination. An encoded URL and its decoded version open the same page.