JS 축소기
Compress JavaScript instantly. Removes whitespace, comments, and optimizes variable names. Processed 100% in your browser — your code stays private.
JavaScript Input
Minified Output
100% Private
All processing happens in your browser via Terser.js. Your code is never sent to any server.
ES2020+ Support
Terser는 화살표 함수, 비동기/await, 클래스 및 템플릿 리터럴을 포함한 최신 JavaScript를 지원합니다.
Faster Page Load
JS를 축소하면 파일 크기가 30–70% 감소하여 대화형 및 핵심 웹 바이탈 점수에 대한 시간이 향상됩니다.
What is JavaScript Minification?
JavaScript 축소는 기능을 변경하지 않고 소스 코드에서 불필요한 모든 문자를 제거하는 프로세스입니다. 여기에는 공백, 줄 바꿈, 주석 및 긴 변수 이름이 포함됩니다. 이 이름은 더 짧은 등가물로 대체됩니다. 결과적으로 더 작은 파일이 다운로드되어 더 빠르게 구문 분석되지만 원본과 기능적으로 동일합니다.
This tool uses Terser — the industry-standard JavaScript minifier and the engine behind Webpack, Vite, and esbuild. Terser performs both minification (removing whitespace and comments) and mangling (renaming variables to shorter names like a, b, c), achieving reductions of 30–70% depending on code style. It fully supports ES2020+ syntax including async/await, optional chaining, and nullish coalescing.
JavaScript를 축소하면 Core Web Vitals가 직접 향상됩니다. JS 번들이 작을수록 TTI (Time to Interactive) 및 TBT (Total Blocking Time) 를 줄일 수 있습니다. Google이 Lighthouse 감사에서 측정하고 순위 신호로 사용하는 두 가지 지표입니다. Google의 PageSpeed Insights는 축소되지 않은 JavaScript를 "렌더링 차단 리소스 제거" 또는 "JavaScript 축소" 기회로 플래그를 지정합니다.
When to Minify JavaScript
Minify JS when:
- ✓ 프로덕션에 배포 — 항상 축소된 JS 제공
- ✓ PageSpeed Insights 점수에 "JavaScript 최소화" 가 표시됩니다.
- ✓ 미리 축소되지 않은 타사 스크립트 처리
- ✓ Reducing payload for mobile users on slow connections
- ✓ 대화형 (TTI) 및 총 차단 시간 개선
- ✓ 배포 전에 여러 개의 작은 스크립트 결합
일반적인 크기 축소:
- • Well-commented library: 50–70% reduction
- • Typical application code: 30–50% reduction
- • Already compressed or generated code: 10–20% reduction
- • 상단에 추가 gzip 압축: 추가 60–80%
효과를 극대화하려면 먼저 축소한 다음 웹 서버에서 gzip 또는 Brotli 압축으로 서빙하십시오.