Smart Unit ConvertersSmart Unit Converters

URL Encoder / Decoder

Percent-encode and decode URLs and query parameters. Supports both component and full-URI modes.

Plain textURL-encoded
Component mode escapes everything (incl. :/?&=#) — use for individual parameter values. Full URI mode preserves the URL syntax characters — use for entire URLs.

?What is the URL Encoder / Decoder?

The URL Encoder/Decoder converts text to and from percent-encoded form (the `%20` style of escaping you see in URLs). Two modes: 'Component' uses encodeURIComponent — escapes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ) — appropriate for individual URL parts (parameter values, path segments). 'Full URI' uses encodeURI — preserves URL syntax characters like `:/?#&=` so the URL itself stays intact. Includes a query-parameter parser that breaks decoded URLs into a key/value table.

The Formula

Percent-encoding (RFC 3986): each non-safe byte → %XX where XX is its hex value. UTF-8 multi-byte characters become multiple %XX sequences.

Practical Examples

1

Encode a search query for a URL: `q=hello world` → `q=hello%20world`.

2

Encode a path with non-ASCII: `/cafés/` → `/caf%C3%A9s/` (UTF-8 bytes for é → %C3%A9).

3

Decode a complex query string from analytics or a redirect: `?utm_source=google%20ads&q=cats%20%26%20dogs`.

4

When passing one URL inside another (OAuth redirects, share links), encode the inner URL with `encodeURIComponent`.

Frequently Asked Questions

Component (encodeURIComponent) for parameter values — encodes ALL non-safe chars including :/?#&=. Full URI (encodeURI) for entire URLs — preserves :/?#&= so the URL syntax survives. If unsure, Component is the safer default.

Popular Conversions

Jump to a ready-made conversion — useful for quick reference and sharing: