Encoders & Text

URL Encoder & Parser

Encode, decode, and break a URL into its parts and query parameters.

  • History kept on this deviceRecent results are kept in this browser's local storage until you clear them.
  • Runs in your browserProcessing happens in this page. No application server receives your input.
URL Component (encodeURIComponent)

Input

Output

Byte mapping

Show byte mapping

Parsed URL parts

Enter an absolute URL (such as https://example.com/path?q=1#top) to inspect its parts.

Query parameters

Query parameters parsed via URLSearchParams (form decoding: + is decoded as a space, while decodeURIComponent leaves + literal).
#ParameterValue (URLSearchParams: + decoded as space)
Query parameters appear here.

Component vs. full-URI scope

  • Component scope (encodeURIComponent) escapes every character except unreserved ASCII (Aโ€“Z aโ€“z 0โ€“9 - _ . ! ~ * ' ( )), including URI delimiters such as ; / ? : @ & = + $ , #. Use component scope when encoding an individual query parameter key, query value, or path segment.
  • Full URI scope (encodeURI) preserves reserved URI structural delimiters (; / ? : @ & = + $ , #) while percent-encoding spaces, non-ASCII UTF-8 bytes, and other unsafe characters. Use full-URI scope when encoding a complete URL that already has its scheme, host, path, query, and fragment structure in place.
  • Literal + vs. form decoding: The Decode action uses decodeURIComponent / RFC 3986 semantics and leaves + as a literal +. By contrast, the query parameter table uses URLSearchParams (application/x-www-form-urlencoded rules), which decodes + as a space (U+0020) and %2B as a literal +.

Example

UTF-8 input a b&c=d (7 bytes) encodes to:

  • Component (encodeURIComponent): a%20b%26c%3Dd
  • Full URI (encodeURI): a%20b&c=d

Limits

Parsing needs an absolute URL; a relative path is encoded and decoded but not broken into parts. No network request is ever made: the host is parsed, never resolved.

Maximum input size: 16.0 MB of UTF-8 text on the main thread.

Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.