EasyConvert

URL Encoder & Decoder

Encode a URL so it works in a browser, or decode a percent-encoded URL back to readable text. Special characters — spaces, &, ?, #, non-English letters — are not allowed raw in a URL, so they are replaced with a % code: a space becomes %20, an & becomes %26, and 'é' becomes %C3%A9.

Paste text and press Encode or Decode.

How to use this converter

Paste text or a URL and press 'Encode' to percent-encode it, or 'Decode' to turn % codes back into characters. You can encode a full URL or just one value (like a search query) — the page explains the difference.

Formula

Percent-encoding replaces each unsafe byte with % followed by two hexadecimal digits. A space is %20, & is %26, ? is %3F, # is %23, and the Urdu letter 'ا' (UTF-8 bytes D8 A7) is %D8%A7. Decoding reverses the process.

Encoding matters whenever you build a link with user input: a search query, a name with spaces, or a redirect URL inside another URL. If the characters are not encoded, the link breaks or means something different. Decoding does the reverse: it turns %20 back into a space so you can read what a link actually contains.

URL encoding — examples

FromEquals
'hello world''hello%20world'
'a&b''a%26b'
'100%''100%25'
'café''caf%C3%A9'
'شاہ نیوز''%D8%B4%D8%A7%D9%81%20%D9%86%DB%8C%D9%88%D8%B2'

Frequently asked questions

What is URL encoding?

Replacing characters that are not allowed in a URL with % codes. A space becomes %20, & becomes %26, and non-English letters become multi-byte % codes.

When should I encode a URL?

Whenever a link contains spaces, &, ?, #, or non-English text — for example a search query or a name in a link. Browsers encode the address bar automatically, but links you build yourself need it.

What is the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes everything except letters, digits and - _ . ! ~ * ' ( ) — use it for a single value like a search term. encodeURI leaves : / ? & = alone, so it is for a whole URL. This page uses encodeURIComponent for values.

How do I decode a URL?

Paste it above and press Decode — %20 becomes a space, %26 becomes &, and so on.

Is my text sent anywhere?

No. Encoding and decoding run entirely in your browser — your text never leaves your device.