Encode special characters for safe use in URLs and query strings, or decode percent-encoded text back to plain characters.
Choose encodeURIComponent for query parameter values or encodeURI for full URLs — the tool explains when to use each.
URL encoding (also called percent-encoding) replaces unsafe characters in a URL with a % followed by two hex digits. For example, a space becomes %20 and & becomes %26.
Any time you pass user input as a URL query parameter. Without encoding, characters like &, =, and # can break the URL structure.
encodeURI encodes a full URL and leaves characters like / and ? intact. encodeURIComponent encodes a single parameter value and converts all reserved characters.
Yes. Paste an encoded URL or string into the decode tab to convert %20-style encoding back to readable text.