Encode or decode URLs and query text with percent-encoding. Spaces, accented characters and & are handled.
No sign-up, no fees.
URL encode and URL decode.
Spaces, accented characters and the & sign are no problem.
Component, full URL and form scopes.
Tells you the place of a faulty percent sequence.
What you type is processed, but never shared with anyone.
How to use the URL Encode / Decode Tool
Seen things like %C5%9F in an address, or is your link breaking because of a space? Four steps:
Pick the direction.Encode or Decode.
Paste the text. Type it into the Text to encode or Text to decode box.
Pick the scope.Component, Full URL or Form. What each does is written under it.
Copy. Take the result with Copy. With Move the result to the input and flip direction you can immediately try the reverse.
What is percent-encoding (URL encode)?
Web addresses can only carry certain characters. Spaces, accented letters and signs with a special meaning like &, ? and # break the link when written plainly inside an address. Percent-encoding writes these characters with a % sign and two hexadecimal digits: a space becomes %20, "é" becomes %C3%A9, "&" becomes %26. Browsers do this in the background by themselves; when you need to do URL encoding and URL decoding by hand, this tool comes in.
Which scope should I choose?
Component: for a query value or a path piece. Every special character including / ? & = # is encoded. This is the right choice for text you'll pass as a parameter to another address (JavaScript's encodeURIComponent).
Full URL: when you'll encode a whole address. Characters that build the address structure stay as they are; only the rest, like spaces and accented letters, are encoded (encodeURI).
Form: the format a form submission uses. A space becomes +; when decoding, + is read as a space.
If you're not sure, pick Component. The wrong scope is the most common mistake: if you encode a full address with "Component", https:// breaks.
What you need to know
Accented letters are encoded as UTF-8 bytes: "é" is two bytes and becomes %C3%A9.
When decoding, if a % isn't followed by two hexadecimal digits, it gives an error and we tell you at which character.
If the decoded bytes aren't valid UTF-8, we report that separately.
Whether a + sign is a space depends on where it is: in the query part and in forms it's a space, in the path part it's a plus.
Tips for encoding URLs
Shared addresses with accents: use Decode to unscramble a link full of long % sequences and see its readable form.
For clean addresses, if you want to produce an address without accented characters from the start, there's Slug / URL generator.
If you'll put a link in a QR code, first encode it correctly here, then make the code with QR code generator.
Common mistakes
Encoding twice: when %20 is encoded again it becomes %2520. Don't encode text that's already encoded.
Confusing it with Base64: Base64 is something else; for that use Base64 encode / decode.
The encoding happens in your browser. What you type is processed, but never shared with anyone.
What's the difference between encodeURIComponent and encodeURI?
The first is for a component (the Component option), the second for a full address (Full URL). This tool gives the same results as both.
Why is a space sometimes %20 and sometimes +?
%20 is valid everywhere. + means a space only in form format. If you're not sure, use %20.
What does %C3%BC mean?
It's the UTF-8 encoded form of the letter "ü". You can make it readable with Decode.
Why do accented characters in an address get so long?
Each accented letter is two bytes and every byte is written with three characters (%XX); one letter takes six characters.
I got an error while decoding. Why?
There may be an unfinished % sequence in the text. The error message says at which character.
Can I use it on my phone?
Yes. Paste the text, pick the direction and scope, and tap Copy.
Does URL encoding affect search engines?
Browsers and search engines understand encoded and unencoded addresses as the same page. But long % sequences look ugly in shared links; that's why addresses without accented characters are preferred for new pages.
How do I put another address into a query parameter?
Encode the address to be inserted with the Component scope, then paste it after ?url=. That way the ? and & of the inner address don't break the outer one.
Should I encode the full address or a component?
If you'll carry a value inside an address, encode the component; if you're fixing the whole address, encode the full URL.