← All calculators / Computing

URL encode / decode

For a component such as a query value, not an entire URL.

01 / Your inputsBrowser-only calculation
URL encode / decode
—
How it works

The formula

Encode/decode a URI component

Example inputs

Text: hello world & tools · Operation: Encode

Result: hello%20world%20%26%20tools

What the URL encode / decode works out

Give the URL encode / decode the values it asks for and it reports URL encode / decode, worked out from the formula Encode/decode a URI component. For a component such as a query value, not an entire URL.

What each field means

Text
Entered as text rather than a single number — the example uses hello world & tools. Keep the same separators shown there.
Operation
Choose between Encode, Decode. The worked example below uses Encode, and switching it changes which rule set the calculator applies.

A worked example

With the values this page opens on — Text hello world & tools, Operation Encode — the answer is hello%20world%20%26%20tools. Reset restores exactly these numbers.

Reading the result

What you get back is URL encode / decode. Each edit recomputes the answer and redraws the chart from your own figures, so the displayed rounding never feeds back into the calculation.

Assumptions and limits

For a component such as a query value, not an entire URL. Decode rejects malformed percent escapes.

Your privacy

Nothing you type leaves your browser.

Related calculators

Base64 encode / decode ↗ · IPv4 subnet ↗ · Password generator ↗ · Bandwidth / transfer time ↗