시작 사이트 등록

URL 인코더·디코더

Developer Tools

텍스트를 퍼센트 인코딩하거나 원래대로 되돌립니다. 전체 URL과 단일 쿼리 값 중 목적에 맞게 선택할 수 있습니다.

결과

결과 —
  • 입력 문자 —
  • 출력 문자 —
  • 출력 바이트 — B

입력값을 바꾸면 결과가 바로 갱신됩니다.

계산식과 규칙

  • 퍼센트 인코딩은 허용 집합 밖의 각 바이트를 퍼센트 기호와 두 자리 16진수로 표기합니다.
  • A space becomes %20, a slash becomes %2F, and the ampersand becomes %26 — the last one matters because & separates query parameters.
  • encodeURI는 : / ? # & = 를 그대로 두어 링크 구조가 유지되지만, encodeURIComponent는 이를 이스케이프합니다.
  • 디코딩은 각 %XX 삼중항을 원래 UTF-8 바이트로 되돌리므로, 중국어 텍스트는 원래 문자로 복원됩니다.

계산 예시

쿼리 문자열 내부의 값

입력 값 범위의 a b&c.

결과 a%20b%26c — the & is escaped so it cannot be read as a second parameter.

전체 URL로 본 동일한 텍스트

입력 전체 URL 범위의 a b&c.

결과 a%20b&c — the space is still escaped but & is preserved as a separator.

중국어 텍스트 디코딩

입력 %E4%BD%A0%E5%A5%BD

결과 你好 — 세 개의 UTF-8 바이트가 세 개의 %XX 삼중항이 되고, 디코딩하면 복원됩니다.

자주 묻는 질문

encodeURI 대신 encodeURIComponent가 필요한 경우는 언제인가요?

? 또는 & 뒤에 넣는 모든 값에는 encodeURIComponent를 사용하세요. 값 안의 이스케이프되지 않은 &나 =는 쿼리를 분리하기 때문입니다. encodeURI는 구분자가 이미 제자리에 있는 완전한 링크에만 사용하세요.

Why does a space sometimes become + instead of %20?

The plus sign belongs to form encoding for application/x-www-form-urlencoded bodies, where it means a space. JavaScript URL functions write %20 instead. This tool reads + as a space when decoding and always writes %20 when encoding, so the two conventions do not collide.

Why do I see %25 in my links?

%25 is an encoded percent sign, which means the text was encoded twice. Encode once at the point where the value is inserted, not again when building the final link.

불완전한 % 시퀀스는 어떻게 되나요?

% 뒤에는 정확히 두 개의 16진수가 와야 하므로 디코딩이 실패합니다. 이 도구는 문자를 조용히 버리지 않고 문제를 알려줍니다.

면책 고지: 결과는 이 페이지의 계산식을 따른 참고값입니다. 실제 소요량은 재료, 시공 방식, 환경에 따라 달라지므로 주문 전에 여유분을 두세요.