Numerly

URL Encoder & Decoder

Toggle between encode and decode. Encoding is RFC 3986 compliant. Decoding handles + as space (form encoding) and standard %XX sequences.

Output

Hello%20world%20%26%20friends%3F

How it works

Encoding uses encodeURIComponent for full RFC 3986 component encoding. Decoding uses decodeURIComponent and replaces "+" with space first to handle form-encoded inputs.

Frequently asked

When should I URL-encode?
Any time you put user input into a query string, form body, or URL path. Spaces, &, =, ?, and unicode characters all need encoding.
Why does my space become %20 sometimes and + other times?
In URL paths, spaces become %20. In query strings encoded as form data, spaces traditionally become +. Both decode to a space.
Can I encode the whole URL?
Use encode-component on individual parts (path segments, query values), not the whole URL — encoding the colon after http: would break the URL.

Other generators

Popular calculators

Share

Popular converters