URL Encode / Decode

Encode reserved URL characters or decode encoded strings with clear error handling for malformed values.

Use it for query values, fragments and path components when a raw string needs to be URL-safe.

Paste raw text or an encoded URL component.

Encoded or decoded result appears here.

Encode or decode a URL component safely.

Common encoded characters

Character Encoded Meaning
Space%20Whitespace inside query values or path fragments.
&%26Prevents splitting query parameters unexpectedly.
/%2FUseful when a slash must stay inside a single component.
?%3FPrevents accidental query-string boundaries.

FAQ

When should I encode a URL value?

Encode values when they contain spaces, punctuation or reserved characters that would otherwise change URL structure.

Why can decoding fail?

Malformed percent-encoded strings, incomplete escape sequences or invalid byte sequences will cause decoding errors.

Does this encode a whole URL or a component?

This tool uses component-safe encoding, which is ideal for query values, fragments or path parts rather than already complete URLs.

Related tools