Developer utility

URL Encode Decode Calculator

Encode or decode URL component text locally in your browser.

Component encoding

This tool encodes URL components, not entire URL validation. It is useful for query parameters, path fragments and debugging copied URLs.

Example

The text "hello world?x=1&y=2" becomes "hello%20world%3Fx%3D1%26y%3D2" when encoded as one URL component.

Encode vs decode

Encoding escapes characters that have special meaning in URLs, such as spaces, question marks and ampersands. Decoding reverses that process when the input is valid encoded text.

Common mistakes

Do not encode a full URL when only one query value needs encoding. Encoding the separators in a full URL can make it unusable as a normal link.

Privacy note

The conversion runs locally in the browser. Avoid pasting secrets, access tokens or private URLs into tools unless you understand where the data is processed.

Last reviewed: 2026-05-17

Before relying on this result

Use this calculator together with the formula, assumptions, limitations and examples on the page. If the topic involves health, tax, lending, investment, legal, safety or current-rate decisions, treat the number as an estimate and check the relevant primary source or professional guidance.

Calculator metadata last reviewed: 2026-05-14.