Free online tools to generate, calculate,
convert, format, encode, and play.
 

URL Parser

Parse any URL into its individual components — protocol, host, port, path, query parameters, and fragment — with encoding and decoding.

URL Encode / Decode

How It Works

A URL (Uniform Resource Locator) follows a standardized structure defined by RFC 3986. Each component serves a specific purpose:

scheme://user:pass@hostname:port/path?query=value#fragment
  |         |         |      |    |       |          |
protocol  auth      host   port  path   query     fragment
Components
  • Protocol (Scheme): Defines how the resource is accessed (e.g., https, ftp, mailto).
  • Auth: Optional username and password for authentication (rarely used in modern URLs).
  • Hostname: The domain name or IP address of the server.
  • Port: The network port (defaults: 80 for HTTP, 443 for HTTPS).
  • Path: Hierarchical path to the resource on the server.
  • Query String: Key-value pairs after ?, separated by &.
  • Fragment: A reference to a section within the resource, following #.
URL Encoding

Special characters in URLs must be percent-encoded (e.g., a space becomes %20). This tool supports both encodeURI (preserves URL structure characters like /, ?, #) and encodeURIComponent (encodes everything except letters, digits, and - _ . ~).



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with