Skip to content
YouNeed Tools
Free VPN

URL Encode and Decode

Paste text or a link, choose encode or decode and the kind of encoding. The result updates as you type, and any address is split into its parts.

Direction
Encode as

Encoded on your device. Nothing you paste is sent anywhere.

Worked example

You want a search link for Café & Bar / 50% off?. As a query value it becomes Caf%C3%A9%20%26%20Bar%20%2F%2050%25%20off%3F, so the link is https://example.com/search?q=Caf%C3%A9%20%26%20Bar%20%2F%2050%25%20off%3F. Sent from an HTML form it would be Caf%C3%A9+%26+Bar+%2F+50%25+off%3F instead, with + for each space. Decoding either one gives the original text back.

Common characters and their codes

CharacterNameEncoded
␠space%20
&ampersand%26
=equals%3D
?question mark%3F
/slash%2F
#hash%23
+plus%2B
%percent%25
ée acute%C3%A9
€euro sign%E2%82%AC

Letters, digits and - _ . ~ never need encoding. Non-English letters are first turned into their UTF-8 bytes, which is why one character can become several %XX codes.

Mistakes that break links

  • Encoding a whole URL with the component mode, which turns https:// into https%3A%2F%2F. Use “Whole address” for full links.
  • Putting an unencoded & inside a value, which splits it into a second parameter.
  • Encoding twice when a library already encodes for you, producing %2520.
  • Leaving # in a value: everything after it becomes the fragment and never reaches the server.

Reading tracking links

Marketing and email links often wrap the real address inside another, encoded once or twice, for example ?url=https%3A%2F%2Fshop.example.com%2Fsale. Paste the whole link into the decoder to read where it really goes before clicking, and look at the parts table for utm_source, utm_campaign and similar tags that say which campaign sent you. Removing those tags before sharing a link keeps it shorter and doesn’t pass your visit data on to the next reader.

Related tools

Sources

Checked on November 26, 2026:

Frequently asked questions

What is URL encoding?
Also called percent-encoding: characters that aren’t allowed in an address, or that have a special meaning in it, are replaced by % and two hex digits for each byte of their UTF-8 form. A space becomes %20, & becomes %26 and é becomes %C3%A9.
Which option should I choose?
“Query value / path part” (encodeURIComponent) for a single value going into a link, like a search term. “Strict” also encodes ! ' ( ) * for systems that follow RFC 3986 to the letter, such as OAuth signatures. “Form data” matches what browsers send from HTML forms, with + for spaces. “Whole address” keeps : / ? # & = so a full URL still works.
Why is a space sometimes + and sometimes %20?
HTML forms (application/x-www-form-urlencoded) encode spaces as +; everywhere else in a URL a space is %20. When decoding form data or query strings from forms, tick “Treat + as a space”.
What does “double encoded” mean?
Encoding text that was already encoded, so %20 becomes %2520. The decoder spots this and shows the fully decoded text.
Why do I get an error when decoding?
Either a % isn’t followed by two hex digits (like 100%), or the bytes don’t form valid UTF-8, often because the text was encoded in an older character set. The message shows where.
Is my text sent anywhere?
No. Encoding and decoding happen on your device, so tokens and private links stay private.

Last updated: 2026-11-26