URL Parse
Encode and decode URLs, break a URL into its parts, or pull every link out of a block of text.
Paste your input on the left and press Translate (or Ctrl/Cmd + Enter) to get the result on the right. Free, no sign-up.
Example
https://user:pass@sub.example.com:8080/path/to/page?query=hello&sort=asc#section
{
"slashes": true,
"protocol": "https:",
"hash": "#section",
"query": "?query=hello&sort=asc",
"pathname": "/path/to/page",
"auth": "user:pass",
"host": "sub.example.com:8080",
"port": "8080",
"hostname": "sub.example.com",
"password": "pass",
"username": "user",
"origin": "https://sub.example.com:8080",
"href": "https://user:pass@sub.example.com:8080/path/to/page?query=hello&sort=asc#section"
}Frequently asked questions
- What is URL encoding?
- URL encoding (percent-encoding) replaces characters that are not allowed in a URL, such as spaces and ampersands, with a % followed by two hex digits.
- What does the URL parser return?
- The protocol, host, port, path, query and hash of a URL as JSON.