JavaScript 압축기
기본적인 JavaScript 압축: 불필요한 주석과 공백을 제거합니다. 프로덕션에는 실제 압축 도구(Terser, esbuild)를 사용하세요.
이 도구 사용 방법
- 1
Paste or type your JavaScript into the input textarea.
- 2
The minified output appears instantly in the panel below as you type — there is no button to press.
- 3
Check the size readout (original length, an arrow, and minified length) to see how much was removed.
- 4
Select the text in the output box and copy it manually into your file.
JavaScript 압축기란 무엇인가요?
JavaScript 압축은 번들 크기와 구문 분석 시간을 줄입니다. 이 도구는 기본적인 공백 및 주석 제거를 수행합니다. 프로덕션 번들에는 Terser, esbuild 또는 SWC를 사용하세요: 이들은 이름 난독화와 데드 코드 제거를 수행하여 훨씬 작은 출력(흔히 60~80% 감소)을 만들어냅니다.
일반적인 사용 사례
Quickly shrinking a short, comment-heavy snippet before pasting it into a tight inline <script> tag.
Stripping comments out of a code sample to share a compact version in a chat or gist.
Estimating roughly how much comment and whitespace overhead a small file carries before setting up a real build.
Cleaning up a hand-written configuration object or constant block that has no strings containing slashes.
Demonstrating to students or teammates what basic comment and whitespace removal looks like versus a real compiler.
Minifying a tiny utility function for a bookmarklet where pulling in a full toolchain is overkill.
자주 묻는 질문
Terser와 비교하면 어떤가요?▼
이것이 제 코드를 망가뜨리나요?▼
관련 도구
JWT 디코더
JSON Web Token(JWT)을 즉시 디코딩합니다. 브라우저에서 실행되므로 토큰이 기기를 벗어나지 않으며, 프로덕션 비밀 값과 함께 안전하게 사용할 수 있습니다.
JSON 포매터 및 검증기
JSON을 온라인에서 정리하고 검증하고 압축합니다. 전적으로 브라우저에서 작동합니다: 데이터가 기기를 벗어나지 않습니다.
XML 포맷터
XML 문서를 포맷하고 보기 좋게 정리합니다. SOAP, 사이트맵, RSS 피드, 구성 파일에 유용합니다.
Base64 인코더 및 디코더
문자열을 Base64로 인코딩하거나 Base64를 텍스트로 디코딩합니다. 개인정보를 보호합니다: 사용자의 브라우저에서 실행됩니다.
URL 인코더 및 디코더
텍스트를 URL에 안전한 인코딩(퍼센트 인코딩)으로, 그리고 그 반대로 변환합니다. 쿼리 문자열, 리디렉션, OAuth 흐름에 유용합니다.
HTML 엔티티 인코더 및 디코더
특수 문자를 HTML 엔티티(&, < 등)로, 그리고 그 반대로 변환합니다. 텍스트를 HTML에 안전하게 삽입하는 데 유용합니다.