URL Encoder & Decoder

Encode and decode URLs in all three encodings

calendar_today Last updated: September 17, 2026

Escapes /, ? and & — use it for a query value.

Result

https%3A%2F%2Fsahel.tools%2Ftools%2Furl-encoder%3Fq%3D%D9%85%D8%B1%D8%AD%D8%A8%D8%A7%26page%3D1

What is in this link

Hostsahel.tools
Path/tools/url-encoder
qمرحبا
page1

Encoded in your browser — the link is never sent anywhere.

lightbulb

Sahel's URL encoder handles all three encodings — a value inside a URL, a whole URL, and HTML form encoding — explains the difference between them, and runs in your browser.

help_outline

How does this tool work?

1

Say what you are encoding

A value inside a URL, a whole URL, or an HTML form.

2

Paste the text

The difference between the three is explained under the choice.

3

Copy the result

With the link broken into host, path and parameters below it.

Frequently asked questions

What is the difference between the three? expand_more
Value encoding escapes /, ? and & because they are going inside a parameter. Whole-URL encoding leaves them alone because they are part of its structure. Form encoding turns a space into + rather than %20, the way browsers submit forms.
When do I actually need encoding? expand_more
Whenever you put text inside a URL: a search phrase, or a value containing a space or an &. Without encoding the browser cuts the link at that character and it arrives truncated.
Why does decoding show an error? expand_more
Because a % must be followed by two hex digits. If your text contains a literal % — “50% off” — it has to be encoded as %25 first.
Does encoding hide a link? expand_more
No. Encoding only makes a link technically valid, and anyone can decode it instantly. Do not use it to conceal anything.