What does URL decode do?
URL decoding (percent-decoding) turns sequences like %20, %3A and %C3%A9 back into the characters they stand for: a space, a colon, an é. Browsers and servers encode anything that is not safe in a URL, so query strings in logs, redirect parameters, tracking links and webhook payloads arrive full of % signs. Decoding them is the quickest way to see what a link really contains or why a parameter reaches your code broken.
This page opens the URL encoder and decoder focused on its Decode panel. It reads the bytes as UTF-8, so accented letters and emoji come out right, and an optional switch treats + as a space, as HTML forms do. When the text cannot be decoded, the message says where and why. It runs entirely in your browser. To split a full URL into protocol, host, path and each query parameter, use the URL parser; to go the other way, URL encode.
How to decode a URL
- Paste the encoded text into Your encoded string in the Decode card.
- If it comes from a form or a search query (
q=hello+world), turn on Read + as a space (form data). - The decoded text appears in Your string decoded as you type.
- Still see
%3Aor%2Fin the result? The value was encoded twice: paste the result back in and decode again. - Click Copy decoded.
Examples
Accented names
Jos%C3%A9%20Mar%C3%ADaJosé María%C3%A9 is the two UTF-8 bytes of é.
A search query from a form
q=caf%C3%A9+au+lait&page=2With the switch off: q=café+au+lait&page=2. With Read + as a space on: q=café au lait&page=2.
A redirect URL encoded twice
redirect=https%253A%252F%252Fexample.com%252FcartThe first pass gives redirect=https%3A%2F%2Fexample.com%2Fcart, because %25 is an encoded %. Decoding that again gives https://example.com/cart.
Common errors
- Invalid percent sequence at position 4: a
%not followed by two hex digits, as in100%. If the text has a real percent sign, it should have been sent as%25. - These bytes are not valid UTF-8: the text was encoded with an old single-byte charset.
caf%E9iscaféin Latin-1; UTF-8 would becaf%C3%A9. Fix the encoder on the sending side. - Parameters merge after decoding: decoding a whole query string also turns
%26into&, which then looks like a separator. Decode each value on its own, or let the URL parser split them first.
FAQ
What is the difference between %20 and +?
Both can mean a space. %20 works everywhere in a URL; + means a space only in form-encoded query strings (application/x-www-form-urlencoded). That is why the + switch exists.
Is URL decoding the same as HTML decoding?
No. & and é are HTML entities; decode them with the HTML entities tool.
Is my URL sent anywhere?
No. Decoding happens in your browser, which matters when URLs carry tokens or personal data.
How to URL-decode in code
JavaScript
decodeURIComponent('Jos%C3%A9%20Mar%C3%ADa'); // 'José María'
new URLSearchParams('q=caf%C3%A9+au+lait&page=2').get('q'); // 'café au lait'Python
from urllib.parse import unquote, unquote_plus
unquote("Jos%C3%A9%20Mar%C3%ADa") # 'José María'
unquote_plus("q=caf%C3%A9+au+lait") # 'q=café au lait'Go
QueryUnescape turns + into a space; PathUnescape does not:
s, err := url.PathUnescape("Jos%C3%A9%20Mar%C3%ADa")
q, err := url.QueryUnescape("caf%C3%A9+au+lait")Bash
python3 -c 'import sys, urllib.parse; print(urllib.parse.unquote(sys.argv[1]))' 'Jos%C3%A9%20Mar%C3%ADa'