Free2BoxFree2Box

URL 파서

URL을 개별 구성 요소로 분해합니다

URL 입력
분석된 구성 요소
Enter a URL to see its components
Parsed components will appear here

사용 방법

1

텍스트 붙여넣기 또는 입력

입력 영역에 텍스트, 코드 또는 데이터를 입력하세요.

2

옵션 선택

적용할 변환이나 포맷을 선택하세요.

3

결과 복사

한 번의 클릭으로 출력을 클립보드에 복사하세요.

이 도구를 사용하는 이유

100% 무료

숨겨진 비용도, 프리미엄 등급도 없습니다 — 모든 기능이 무료입니다.

설치 불필요

브라우저에서 완전히 실행됩니다. 소프트웨어를 다운로드하거나 설치할 필요가 없습니다.

프라이빗 & 안전

데이터가 기기 밖으로 나가지 않습니다. 어떤 서버에도 업로드되지 않습니다.

모바일 지원

완전 반응형 — 스마트폰, 태블릿, 데스크톱에서 사용할 수 있습니다.

URL Anatomy: Understanding Web Address Components

Key Takeaways

  • A URL consists of scheme, authority (host + port), path, query parameters, and fragment — each serving a distinct purpose.
  • Proper URL parsing prevents security vulnerabilities like open redirects, SSRF, and path traversal attacks.
  • All URL parsing happens in your browser using the native URL API — no data is sent to any server.

URLs (Uniform Resource Locators) are the addressing system of the web. Every link clicked, API called, and resource loaded relies on correctly structured URLs. Understanding URL components — from protocol and hostname to query parameters and fragments — is essential for web development, API design, security auditing, and debugging network issues.

The URL standard (WHATWG) replaced RFC 3986 for browser implementations, resolving decades of parsing inconsistencies.

Standards Evolution

Key Concepts

1

URL Components

Protocol (https:), host (www.example.com), port (:443), pathname (/api/v1/users), search (?id=123&sort=name), hash (#section2). Each component has specific encoding rules.

2

Origin and Same-Origin Policy

A URL's origin is the combination of protocol, host, and port. The same-origin policy restricts how documents from one origin can interact with resources from another, forming a cornerstone of web security.

3

Query String Parameters

Query parameters (key=value pairs after ?) pass data to servers. URLSearchParams API provides methods to parse, build, and manipulate query strings programmatically.

4

Relative vs. Absolute URLs

Absolute URLs include the full path from protocol. Relative URLs resolve against a base URL. Understanding resolution rules prevents broken links and security issues in web applications.

Pro Tips

Always use the URL constructor (new URL()) for parsing — it handles edge cases that string splitting misses.

Use URLSearchParams for query string manipulation instead of manual string concatenation to avoid encoding errors.

Validate URL origins before redirecting users to prevent open redirect vulnerabilities in authentication flows.

Remember that the fragment (#hash) is never sent to the server — it is client-side only, used for in-page navigation and SPA routing.

All URL parsing is performed entirely in your browser using the native URL API. Your URLs, which may contain authentication tokens or sensitive parameters, are never transmitted to any external server.

자주 묻는 질문