URL 파서·인코더
URL을 프로토콜, 호스트, 경로, 쿼리 파라미터로 분해하고, 텍스트를 퍼센트 인코딩하거나 디코딩합니다.
브라우저 안에서만 실행됩니다. 입력한 내용은 어디에도 업로드되지 않습니다.
파라미터 값 하나에는 컴포넌트를, 주소 전체를 이스케이프하면서 / ? # & = 를 그대로 두려면 전체 URI를 쓰세요.
https%3A%2F%2Fwww.ryuslog.com%2Fblog%3Fcategory%3DTypeScript%26tag%3Dtypes%2Bgenerics%26page%3D2%23results
- 프로토콜
- https:
- 호스트
- www.ryuslog.com
- 경로
- /blog
- 해시
- #results
| 키 | 원본 | 디코딩 |
|---|---|---|
| category | TypeScript | TypeScript |
| tag | types+generics | types generics |
| page | 2 | 2 |
URL 예약 문자
빠른 참조- %20
- 공백의 인코딩입니다. 쿼리 문자열에서는 대부분의 폼 파서가 평범한 +도 공백으로 읽습니다.
- %2F %3F %23
- 슬래시, 물음표, 해시의 인코딩입니다. 이 세 문자는 그대로 두면 URL 구조를 바꿔 버립니다.
- %26 %3D
- 앰퍼샌드와 등호의 인코딩입니다. 파라미터 값 안에서는 쿼리가 쪼개지지 않도록 이렇게 써야 합니다.
- encodeURIComponent
- 파라미터 값 하나를 이스케이프합니다. / ? # & = 까지 처리하므로 쿼리 값에 맞는 선택입니다.
- encodeURI
- URL 구조 문자를 그대로 둡니다. 값 하나가 아니라 URL 전체에 쓰는 함수입니다.
- new URL(input)
- protocol, host, pathname, searchParams, hash를 꺼낼 수 있는 내장 파서입니다.
Next.js 관련 문법 가이드
Next.js 가이드 전체Next.js Server Actions: Swallowed Redirects and Body Limits
redirect() throws, so a try/catch swallows the navigation; the action body parser has a 1 MB limit; and useActionState cannot hold an Error. Fixes for all three.
Next.jsSupabase SSR on Next.js: Stale Sessions and Lock Timeouts
The session flips between signed-in and signed-out because the refreshed token is written to a cookie store that no longer exists. Adapter, proxy and lock fixes.
Next.jsNext.js Standalone in Docker: Missing CSS and sharp Module Errors
output standalone copies server.js only, so /_next/static and public are missing and every page renders unstyled. The image and copy fixes, plus the sharp native binding error.
Next.jsNext.js 16 Upgrade: Async Params, proxy.ts, and Turbopack Build Breaks
The codemod gets you most of the way; the rest is async request APIs, a webpack config Turbopack refuses, and a renamed middleware file that silently stops running.