Home Work & Income URL Encode / Decode

URL Encode / Decode

Percent-encode text for safe use inside URLs, and decode it back.

Advertisement

How it works

URLs only safely carry a small set of characters; everything else, spaces, ampersands, equals signs and non-Latin letters, must be percent-encoded before it can ride inside a link or a query string. This page uses the component-safe rules, so an encoded value never breaks the address around it. Decode reverses the process and refuses malformed input instead of guessing.

Advertisement

Formula

Every unsafe byte becomes a percent sign followed by its two hex digits.
A space inside a component is %20, an ampersand %26, an equals sign %3D.

Example

Example in plain words. The text a b&c=100.

Encoded: a%20b%26c%3D100, nine characters in, twenty-one out.

Decoding that string returns the original exactly.

Frequently asked questions

When do I need encoding?

Whenever you put user text into a link: search queries, share links, redirects. Without it an ampersand in the text silently splits your parameters.

Is %20 the same as +?

Only inside traditional form query strings is + read as a space. In paths and in component encoding, always use %20.

Advertisement

Related calculators

Salary Calculator

Convert a salary between hourly, weekly, every two weeks, monthly and yearly pay.

Time Card Calculator

Add up your clock-in and clock-out times for the week, take off breaks, and get total hours and pay.

Prorated Salary Calculator

Pay for part of a month, for example when you start or leave in the middle of it.

IP Subnet Calculator

Network address, broadcast address, subnet mask and usable host range for any IPv4 address and prefix length.