Skip to content
UtilSprout

Developer Tools

URL Encoder / Decoder

Percent-encode or decode UTF-8 text, emoji, URL components and complete URLs. Choose component or full-URL semantics, copy the result, and optionally inspect an absolute URL's protocol, hostname, port, path, query parameters and hash.

🔒 Your files and data never leave your device
Action
Input and output remain in this browser and are never requested over the network.

Simple workflow

How to use URL Encoder / Decoder

  1. 1Choose Encode or Decode and select URL component or Full URL mode.
  2. 2Enter text or a URL, then process it locally.
  3. 3Copy the output, reuse it as input, or parse an absolute URL into its parts.

Good to know

Frequently asked questions

What is the difference between the two modes?

URL component matches encodeURIComponent() and encodes separators such as ? and &. Full URL matches encodeURI() and preserves structural URL separators.

Does it support emoji and non-Latin text?

Yes. Browser URI functions encode Unicode as UTF-8 percent sequences and decode valid sequences back to text.

Why does decoding show an error?

A percent sign must be followed by a valid two-digit hexadecimal byte sequence. Malformed or incomplete sequences are rejected instead of being silently altered.

Are entered URLs opened or requested?

No. Encoding, decoding and parsing happen locally; the tool does not visit or transmit the URL.

Practical guide

Choose component encoding or preserve full URL structure

URL component mode follows encodeURIComponent(): it is appropriate for one query value or path segment and encodes separators such as &, = and ?. Full URL mode follows encodeURI(): it preserves those structural separators while encoding spaces and non-ASCII text.

Decoding reverses valid UTF-8 percent sequences. Malformed sequences are reported instead of partially changing the value. Parse URL requires an absolute URL and displays its parts without requesting the address.

Worked example

Encode a search query value

Start with
plants & pots 🌱
Choose
Choose Encode and URL component.
You get
The output preserves the exact text as percent-encoded UTF-8 and can safely occupy one query parameter value.

Tips for a useful result

  • Encode individual query values before joining them with & and =.
  • Do not repeatedly encode an already encoded value unless double encoding is intentional.
  • Parsing a URL does not verify that its hostname exists or that the page is safe.

Privacy

The tool calls native URL and URI functions in your browser. Entered URLs are not opened, fetched, stored or sent to analytics.

Keep going

Related tools

View all →