www.freeformatter.com Open in urlscan Pro
2606:4700:20::ac43:4bae  Public Scan

URL: https://www.freeformatter.com/url-parser-query-string-splitter.html
Submission: On June 09 via manual from CA — Scanned from CA

Form analysis 2 forms found in the DOM

<form class="app-search d-none d-lg-block">
  <div class="position-relative">
    <input id="searchbar" type="text" class="form-control" placeholder="Search tools...">
    <span class="bx bx-search-alt"></span>
  </div>
</form>

POST /url-parser.html

<form id="form" enctype="multipart/form-data" method="post" action="/url-parser.html">
  <div class="row mb-3">
    <div class="col-12">
      <label for="inputString" class="form-label">Copy-paste your URL here</label>
      <input id="inputString" name="inputString" class="form-control" placeholder="Copy-paste your URL here">
    </div>
  </div>
  <div>
    <button id="parseButton" class="btn btn-primary w-md" title="Parse the URL and split the query string">Parse URL</button>
  </div>
</form>

Text Content

FF FREEFORMATTER.COM

Free Online Tools For Developers
 * Formatters
   * XML Formatter
   * JSON Formatter
   * HTML Formatter
   * SQL Formatter
 * Validators
   * XML Validator
   * JSON Validator
   * HTML Validator
   * XPath Tester
   * Credit Card Number Generator & Validator
   * Regular Expression Tester
   * Java Regular Expression Tester
   * Cron Expression Generator (Quartz)
 * Converters
   * XSD Generator
   * XSLT (XSL Transformer)
   * XML to JSON Converter
   * JSON to XML Converter
   * CSV to XML Converter
   * CSV to JSON Converter
   * YAML to JSON Converter
   * JSON to YAML Converter
   * Epoch Timestamp To Date
 * Encoders / Cryptography
   * Url Encoder & Decoder
   * Base 64 Encoder & Decoder
   * Convert File Encoding
   * Message Digester (MD5, SHA-256, SHA-512)
   * HMAC Generator
   * QR Code Generator
 * Code Minifiers / Beautifier
   * JavaScript Beautifier
   * JavaScript Minifier
   * CSS Beautifier
   * CSS Minifier
 * String Escaper & Utilities
   * String Utilities
   * HTML Escape
   * XML Escape
   * Java and .Net Escape
   * JavaScript Escape
   * JSON Escape
   * CSV Escape
   * SQL Escape
 * Web Resources
   * Lorem Ipsum Generator
   * List of MIME types
   * HTML Entities
   * Url Parser / Query String Splitter
   * I18N Standards / Code Snippets




URL PARSER / QUERY STRING SPLITTER

 1. Web Resources
 2. URL Parser

This simple tool lets you parse a URL into its individual components, i.e
scheme, protocol, username, password, hostname, port, domain, subdomain, tld,
path, query string, hash, etc. It also splits the query string into a human
readable format and takes of decoding the parameters.

This tool uses the URI.js library developed by Rodney Rhem

To learn more about the structure of a URL, check out the URLs Explained section
of this page.


Copy-paste your URL here
Parse URL



-URL PARTS-

Scheme: Protocol: Userinfo: Username: Password: Authority: Host: Hostname: Port:
Subdomain: Domain: Tld: Resource: Directory: Path: File name: File suffix: Query
string: Hash:


-QUERY STRING-




URLS EXPLAINED

--------------------------------------------------------------------------------


WHAT'S A URI?

Uniform Resource Identifiers (URIs) are used to identify 'names' or 'resources'.
They come in 2 varieties: URNs and URLs. In fact, a URI can be both a name and a
locator!


WHAT'S A URL?

Uniform Resource Locators (URLs) provide a way to locate a resource using a
specific scheme, most often but not limited to HTTP. Just think of a URL as an
address to a resource, and the scheme as a specification of how to get there.


WHAT'S A URN?

Uniform Resource Names are identifiers for resources. They are location
independent and make use of the urn: scheme.


WHAT'S THE SYNTAX OF A URI?

scheme:scheme-specific-part?query#fragment

Examples:

 * ftp://ftp.is.co.za/rfc/rfc1808.txt
 * http://www.ietf.org/rfc/rfc2396.txt
 * ldap://[2001:db8::7]/c=GB?objectClass?one
 * news:comp.infosystems.www.servers.unix
 * tel:+1-816-555-1212
 * telnet://192.0.2.16:80/
 * urn:oasis:names:specification:docbook:dtd:xml:4.1.2


WHAT'S THE SYNTAX OF A URL?

scheme://username:password@subdomain.domain.tld:port/path/file-name.suffix?query-string#hash

Examples:

 * http://www.google.com
 * http://foo:bar@w1.superman.com/very/long/path.html?p1=v1&p2=v2#more-details
 * https://secured.com:443
 * ftp://ftp.bogus.com/~some/path/to/a/file.txt


WHAT'S THE SYNTAX OF A URN?

urn:namespame-identifier:namespace-specific-string

Examples from Wikipedia:

 * urn:isbn:0451450523
 * urn:ietf:rfc:2648
 * urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66


WHAT'S THE 'USERINFO' IN A URL?

The userinfo part of a URL is made of the username and/or the password. They are
optional and used for authentication purposes. The userinfo has the format
username:password and is followed by the @ character and the host. The password
is optional, often resulting in a prompt by the user interface for a password.

Examples:

 * ftp://username:password@host.com/
 * ftp://username@host.com/


WHAT'S THE 'AUTHORITY' IN A URL?

The authority of a URL is made of the userinfo, the hostname and the port. The
userinfo and port are optional. When the port is not present, a default port for
the specific scheme is assumed. For example port 80 for http or 443 for https.

Examples:

 * username:password@host.com/
 * subdomain.domain.com
 * www.superaddress.com:8080


WHAT'S THE 'FRAGMENT' IN A URL?

Also known as a hash, the fragment is a pointer to a secondary resource with the
first resource. It follows the # character.

Examples:

 * http://www.foo.bar/?listings.html#section-2


WHAT'S THE 'PATH' IN A URL?

The path of a URL is made of segments that represent a structured hierarchy.
Each segment is separated by a the / character. You can think of a path as a
directory structure.

Examples:

 * http://www.foo.bar/segment1/segment2/some-resource.html
 * http://www.foo.bar/image-2.html?w=100&h=50
 * ftp://ftp.foo.bar/~john/doe?w=100&h=50


WHAT'S THE 'QUERY STRING' IN A URL?

The query contains extra information that is usually in the key-pair format.
Each pair is usually separated by an ampersand & character. It follows the ?
character.

Examples:

 * http://www.foo.bar/image.jpg?height=150&width=100
 * https://www.secured.com:443/resource.html?id=6e8bc430-9c3a-11d9-9669-0800200c9a66#some-header


© FreeFormatter.com - FREEFORMATTER is a d/b/a of 10174785 Canada Inc. -
Copyright Notice - Privacy Statement - Terms of Use - Contact