Home

URL Encoder and Decoder

Encodes text for use as a URL component and attempts to decode percent-encoded text.

How it works

URL component encode/decode

Formula and assumptions

URL-component encoding escapes characters that are not safe in a URL component. Encoding is not the same as HTML escaping; avoid placing untrusted decoded text directly into HTML.

Example

Use the sample values, calculate, and change one input at a time.

Frequently asked questions

Are results exact? Results depend on the assumptions and inputs above.

Can I use this for professional decisions? Verify critical results independently.

Related calculators

Browse all calculators

Frequently asked questions

Is URL encoding the same as HTML escaping?

No. Use context-appropriate escaping before inserting untrusted text into HTML.

What should I check before relying on the result?

Confirm the input units and assumptions described above; independently verify safety-critical, medical, financial or professional decisions.