URL encoding and decoding
Encode text and URL parameter values, or decode %XX sequences as UTF-8 text. Conversion and result copying work locally in your browser.
Encodes a URL component: space → %20, + → %2B, / → %2F. Limit: 1 MiB of UTF-8 text.
Conversion result
No result yet. Convert the source text to see the result.
How to use
- Step 1
Choose Encode or Decode mode.
- Step 2
Enter source text or a URL-encoded string. The limit is 1 MiB of UTF-8 text before encoding or after decoding.
- Step 3
Click the selected action and copy the result. Clear removes the source, result, and errors.
Frequently asked questions
Does it encode a complete URL or a component?
The tool follows encodeURIComponent rules for a parameter value or another URL component. Spaces become %20, and separators such as /, :, ?, &, = and # are also encoded. A complete URL can be entered, but it will be encoded as a single value. Letters A–Z and a–z, digits, and - _ . ! ~ * ' ( ) are preserved.
How are spaces and + handled?
Spaces are encoded as %20, and plus signs as %2B. Decoding preserves + as a plus instead of changing it to a space. These are URL component rules; HTML form encoding with + for spaces is not used here. Input whitespace and line breaks are not trimmed.
Which strings can be decoded?
UTF-8 text is supported, including Cyrillic letters and emojis. Each % must be followed by two hexadecimal digits; A–F may be uppercase or lowercase. Malformed sequences and invalid UTF-8 produce an error. Each action decodes one level: %2520 becomes %20.
Are data saved or links opened?
No. Input and results stay in page memory, are not sent to a server, and are not saved in browser storage. Links are not opened. Conversion runs on button click; editing or switching modes clears results and errors while preserving the source text.