Developer Tools

URL Encoder / Decoder

Encode text to URL-safe percent-encoding or decode URL-encoded strings back to plain text.

Input
Output
About this tool

URL encoding (percent-encoding) replaces characters that are not allowed in URLs with a percent sign followed by two hex digits representing the character's ASCII code. Spaces become %20, ampersands become %26, and so on. This is required for query string values, form submissions, and any URL component that contains special characters. Decoding reverses the process, converting percent-encoded sequences back to readable text.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL and leaves characters like /, ?, and & intact because they have meaning in a URL structure. encodeURIComponent encodes a single component (like a query string value) and encodes all special characters including /, ?, and &. This tool uses encodeURIComponent, which is correct for encoding values within a URL.

Related tools