DEVELOPER TOOLS

URL Encoder and Decoder

Encode and decode URL text in your browser. Choose component, full URL, or form/query mode, repair common percent-encoding mistakes, and inspect parsed URL details.

URL text
URL context

Use when the whole URL should keep separators such as /, ?, &, and #.

Options
111
117
Parsed URL details

URL parts

Protocol
https
https:
Origin
https://example.com
Path
/search
Query
q=coffee & tea&redirect=https://app.example.com/done?ok=true
?q=coffee%20%26%20tea&redirect=https%3A%2F%2Fapp.example.com%2Fdone%3Fok%3Dtrue
Fragment
section 1
#section%201

Query parameters

Key
q
q
Value
coffee & tea
coffee+%26+tea
Key
redirect
redirect
Value
https://app.example.com/done?ok=true
https%3A%2F%2Fapp.example.com%2Fdone%3Fok%3Dtrue
Current conversion
Input characters
117
Output characters
111
Percent escapes
10
Decode rounds
1

How to Encode and Decode URLs Without Breaking Them

Choose the right URL context

URL component

Use this for one value, such as a query value, path segment, redirect URL, or fragment value.

Full URL

Use this when you want the URL to stay readable and keep separators like slash, question mark, ampersand, and hash.

Form/query value

Use this when the text comes from form-encoded data and plus signs should be treated as spaces.

Common mistakes

Encoding a full URL as one value

Component encoding escapes URL separators. That is useful inside one query value, but it can make a whole URL harder to read or use.

Missing a second decode

Some redirect values and logs are encoded more than once. If the output still has patterns like %20, try recursive decode.

Forgetting plus-as-space rules

A plus sign means space in form-encoded query text, but not in every URL context. Switch modes before trusting the output.

Tips

Inspect query values

After decoding a full URL, check the parsed query section to see each key and value separately.

Use line mode for lists

Line mode keeps a list of separate URLs or values in the same shape while each line is converted.

Remove secrets before sharing

The tool runs in your browser, but copied URLs can still expose tokens, passwords, and private IDs.