URL 파서 및 빌더
URL을 구성 요소로 분해하거나 부분에서 URL을 조합하세요 — 라이브 쿼리 매개변수 편집기 포함.
이 도구에 대해
파싱 및 빌드 모드 간에 전환합니다. 파싱 모드에서는 URL을 붙여넣어 프로토콜, 자격 증명, 호스트명, 포트, 경로명, 쿼리 매개변수(편집 가능한 표) 및 프래그먼트를 확인합니다. 빌드 모드에서는 개별 필드를 입력하여 유효한 URL을 조합합니다. 쿼리 매개변수를 추가/제거하고 전체 URL을 인코딩/디코딩하며 한 번의 클릭으로 결과를 복사합니다.
사용 방법
- 1 상단의 탭 버튼을 사용하여 파싱 또는 빌드 모드를 선택하세요.
- 2 파싱 모드: 전체 URL을 붙여넣으면 모든 구성 요소가 즉시 표시됩니다.
- 3 쿼리 매개변수 행을 편집한 후 업데이트된 URL을 복사하세요.
- 4 빌드 모드: 프로토콜, 호스트, 경로 및 매개변수를 입력하여 URL을 조합하세요.
The anatomy of a URL
A URL looks like a single string, but it is really a structured record with up to eight distinct parts. Understanding those parts is the difference between guessing at why a link breaks and knowing exactly which segment is wrong. This tool parses any URL into its components and lets you edit each one, then rebuilds a valid URL from your changes. Take the example URL the input placeholder suggests:
https://user:pass@example.com:8080/path?a=1&b=2#section
| Component | Value here | Role |
|---|---|---|
| Protocol (scheme) | https: | How to talk to the server |
| Username | user | Optional credential |
| Password | pass | Optional credential |
| Hostname | example.com | Which server |
| Port | 8080 | Which service on that server |
| Pathname | /path | Which resource |
| Query | a=1&b=2 | Parameters as key/value pairs |
| Fragment | section | A location within the resource |
It follows the real URL standard
This is not a regular-expression guess. The tool uses the browser's native URL object, which implements the WHATWG URL Standard — the same parser your browser uses to load pages. That matters because URLs have surprisingly subtle rules: how default ports are handled, how the fragment is separated from the query, how Unicode hostnames are normalised. Because parsing goes through the genuine standard implementation, the components you see are exactly what a server or fetch call would receive. If the string cannot be parsed as a valid URL, the tool shows a descriptive error rather than silently producing garbage.
The live query-parameter editor
The most useful feature is the editable parameter table. After parsing, every key=value pair in the query string becomes its own editable row. Change a value, add a row, or delete one, and the full rebuilt URL updates instantly underneath. This is the right way to manipulate query strings, because the rebuilder re-encodes values correctly using the standard searchParams API — you never have to hand-escape an ampersand or a space. The table also shows a decoded view of each value beside the raw one, so you can immediately tell that %20 is a space and %2F is a slash.
A worked example
Paste a tracking-laden link such as https://shop.example.com/item?id=42&utm_source=email&utm_campaign=spring. The parser splits out the hostname shop.example.com, the path /item, and three parameters. Delete the two utm_ rows, leave id=42, and copy the result — you have a clean, trackingless link in two clicks. Or go the other way: in Build mode, choose https:, type the host, add a path, and add parameter rows, and the tool assembles a correctly-encoded URL from scratch. Build mode also exposes optional username, password, port, and fragment fields for assembling more complex URLs.
Encode versus decode
The Encode and Decode buttons in Parse mode apply encodeURI and decodeURI to the whole URL. Encoding converts characters that are not legal in a URL — spaces, accented letters, many symbols — into percent-encoded form (a space becomes %20). Decoding reverses that for readability. Note the distinction: encodeURI deliberately preserves the characters that give a URL its structure (:, /, ?, #, &), so it is safe to run on a whole URL without breaking it. That is different from encoding a single parameter value, where those structural characters must be escaped — which the parameter table handles for you automatically.
Use cases and pitfalls
- Cleaning marketing links by stripping
utm_and other tracking parameters before sharing. - Debugging API calls by confirming that each query parameter is spelled and encoded the way the server expects.
- Building deep links with the correct path and parameters without typing fragile escape sequences by hand.
- Inspecting credentials and ports embedded in connection strings.
- Pitfall — embedded credentials are not secret. The
user:pass@form is plainly visible in the URL and in server logs. Never treat it as secure; modern browsers also warn or strip it. - Pitfall — encode the value, not the whole string, when building manually. A raw
&inside a parameter value must become%26or it will be misread as a separator. The parameter table does this; manual string concatenation does not. - Pitfall — the fragment never reaches the server. Everything after
#is handled by the browser only, so do not put server-side parameters there.
All parsing, building, encoding, and decoding happen locally in your browser. URLs — which can contain tokens, IDs, and credentials — are never sent anywhere.