Pixlane

Converter · SOTA URL.canParse() + RFC 3986

URL Encoder & Decoder

Encode and decode URLs with full RFC 3986 compliance. Per-component modes (path, query, fragment), URL.canParse() validation, URLSearchParams visualization.

URL inspection (via URL constructor)
Query parameters (URLSearchParams)

How to Use URL Encoder in 3 Steps

  1. Configure. Paste a URL or component to encode. Select the component type: full URL, path segment, query key/value, or fragment — each has different RFC 3986 rules.
  2. Process. See encode and decode results side-by-side. The tool validates input with URL.canParse() and highlights parts that would break in a browser.
  3. Export. For query strings, the URLSearchParams table breaks down every parameter — copy keys, values, or reconstruct with modifications.

Why URL Encoder on Pixlane

URL encoding is needed for building query strings, handling user-generated paths, escaping redirect targets, and anywhere special characters must be transmitted safely through HTTP. Pixlane uses the modern URL.canParse() (ES2024) for pre-validation and distinguishes per-component encoding rules per RFC 3986.

Frequently Asked Questions

What's the difference between encodeURI and encodeURIComponent?

encodeURI leaves URL structure characters (/?#&=) unescaped — use it for full URLs. encodeURIComponent escapes everything — use it for individual query values or path pieces that might contain those characters.

What does URL.canParse() do?

URL.canParse() (ES2024) is a static method that returns true if a string is a valid URL. It's faster and cleaner than try/catch around new URL().

Why does my query string have '+' instead of '%20'?

application/x-www-form-urlencoded (the HTML form encoding) uses '+' for space. Query strings created by URLSearchParams also use '+'. Both are valid — servers decode them the same way.

Is this tool free?

Yes. URL Encoder on Pixlane is completely free with no signup required.

Related Tools