Calcoid

URL Encoder / Decoder

Percent-encode or decode URLs and query values. Component mode uses encodeURIComponent, which leaves !'()* unescaped; full URI mode preserves URL structure.

URL encoder and decoder

Mode
Variant

Encodes every reserved character. Use for query string values.

Output

Your encoded text will appear here.

URL Encoding Examples

InputComponent encodingMeaning
hello worldhello%20worldSpace
a&b=ca%26b%3DcQuery delimiters
cafécaf%C3%A9UTF-8 text
50%50%25Percent sign
/path?x=1%2Fpath%3Fx%3D1Path and query delimiters

Frequently Asked Questions about the URL Encoder / Decoder

When should I use component encoding versus full URI encoding?
Component mode uses encodeURIComponent for query values and path segments. It escapes structural characters such as : / ? # & and =, but leaves the encodeURIComponent exceptions !'()* unescaped. Full URI mode uses encodeURI and preserves more URL structure. Neither mode builds a query string or validates a complete URL for you.
Why does my decoded text show a malformed-sequence error?
Every percent sign in a URL must be followed by exactly two hex digits (0-9, A-F). Sequences like %ZZ, a lone %, or %A at the end of the string are invalid and trigger this error. If you want a literal percent sign in your output, encode it as %25 first, then decode.
How is a space encoded?
This tool encodes a space as %20 in both Component and Full URI modes, following the URL standard (RFC 3986). The plus sign (+) means a space only in HTML form bodies (application/x-www-form-urlencoded), which is a different encoding scheme. If you paste a URL that contains a +, this tool leaves it as + when decoding rather than turning it into a space.
How are non-ASCII characters handled?
Each non-ASCII character is first converted to its UTF-8 byte sequence, then each byte is percent-encoded. An accented letter like "e" with an accent produces two percent triplets, and a 4-byte emoji produces four. Decoding reverses the process and gives back the original character.
Is this tool safe to use for sensitive URLs or tokens?
Do not paste live API keys, session tokens, signed URLs, or other credentials into a third-party page. This component performs the conversion in browser memory, but extensions, compromised scripts, clipboard history, screenshots, and device malware are outside its control. Use redacted or disposable test values.

Related Calculators

More calculators in "Tech"

See all 98 calculators in "Tech"