URL encoder and decoder

Encode and decode URLs locally, with separate modes for URL components and complete URIs.

Plain text

Encoding scope

Encoded text

Component mode uses encodeURIComponent / decodeURIComponent for one query value or path segment, encoding structural characters such as /, ?, &, = and #. Complete URI mode uses encodeURI / decodeURI and preserves these separators, including their percent escapes when decoding; it does not validate whether a URL is reachable.

Spaces become %20; + remains a literal plus, not a form-encoded space. Unicode uses UTF-8. Letters, digits and - _ . ! ~ * ' ( ) remain unchanged.

How to use

Edit either field to convert instantly. Use URL component mode for a single parameter or path segment, or complete URI mode to preserve URI separators. Copy either result or reset the example.