Skip to content

Web

URL component encoder and decoder

Convert text into percent-encoded URL component form, or decode a component back to readable text.

This uses URL component encoding. Encoding a complete URL also encodes its slashes, colon and question mark; use it for one query value or path segment, not an entire destination link. Plus signs are not converted into spaces by this decoder.

Example task

Encode a search term for a query parameter or decode a URL component when inspecting a link copied from a browser.

How this works

Paste one query value or path segment and choose Encode. Spaces and reserved characters are escaped with URL component encoding.

Choose Decode for valid percent-encoded text. A complete URL should not be encoded as one component, because its separators would be escaped too.

URL component conversion only. Validate the final destination link before sharing.

Questions

Can I encode an entire URL?+

This tool uses component encoding, which escapes URL separators. Use it for one component, not the whole URL.

Does decoding turn + into a space?+

No. It uses decodeURIComponent. Plus-as-space belongs to form query parsing, which is different.

Is my text sent anywhere?+

No. Conversion runs in the browser.