Tools

Website SEO AuditBroken Link CheckerSchema Markup ValidatorAI Crawler CheckerInternal Link CheckerKeyword Cannibalization CheckerKeyword ClusteringKeyword SuggestionsKeyword GapSEO Content CheckerReadability CheckerKeyword DensityAI HumanizerWriting Pattern IndicatorSearch Console Regex GeneratorLong-Tail Keyword IdeasSERP Snippet PreviewMeta Tag GeneratorURL Slug GeneratorRobots.txt GeneratorMeta Title GeneratorMeta Description GeneratorOpen Graph GeneratorTwitter Card GeneratorHTML Meta TagsMeta Tags for WordPressMeta Tags for ShopifyMeta Tags for BloggerMeta Tags for WebflowMeta Tags for ReactMeta Tags for Next.jsCore Web Vitals CheckerImage CompressorHTML MinifierCSS MinifierJavaScript MinifierVideo & Image SpecsQR Code GeneratorCurrency ConverterScientific CalculatorLoan / EMI CalculatorMortgage CalculatorCompound Interest CalculatorSalary to Hourly CalculatorAge CalculatorDate Difference CalculatorJSON Formatter & ValidatorWord CounterMerge PDFSplit PDFRotate PDFDelete PDF PagesRearrange PDF PagesExtract PDF PagesCrop PDFJPG to PDFPNG to PDFPDF to JPGPDF to PNGResize ImageCrop ImageImage ConverterWebP to JPGHEIC to JPGProfile Photo MakerImage to Text (OCR)MOV to MP4MKV to MP4WebM to MP4AVI to MP4MP4 to MP3Extract Audio from VideoTrim VideoMute VideoVideo to GIFResize VideoCompress VideoM4A to MP3WAV to MP3OGG to MP3AAC to MP3Split CSVSplit ExcelCSV to ExcelExcel to CSVExcel to XMLXML to ExcelXML to CSVXML to JSONJSON to CSV
Speed & CodeFree, no sign-upRuns in your browser

JavaScript Minifier

Full mode uses Terser, the standard professional minifier, for the smallest possible file. Safe mode only strips comments and blank lines, keeping every line intact.

Full mode renames variables and removes every unneeded character. Terser loads the first time you use it.
0 BOriginal size
0 BMinified size
0% Size reduction

Want maximum compression instead?

For production sites, a real bundler-based minifier (Terser, esbuild, SWC) will get files much smaller and is what we'd actually recommend for a live site's core bundle. This tool is for quick one-off shrinking — pasting a snippet before adding it to a CMS text box, for example — where installing a build tool isn't worth it.

How to use the JavaScript Minifier: step by step

  1. Choose Full (smallest, using Terser) or Safe (comments and blank lines only).
  2. Paste your JavaScript.
  3. Copy the minified result.
  4. Test the page that uses it.

A real example

A 30 KB tracking script with many comments goes onto every page. Full mode renames local variables and removes spaces, making it much smaller; Safe mode just tidies it while keeping every line.

Tips for better results

  • Use Safe mode if your code relies on function names or you need readable line numbers in errors.
  • Terser loads the first time you use Full mode.
  • For production sites, a bundler with Terser or esbuild is the best long-term setup.

Frequently asked questions

What is the difference between Safe and Full?

Safe mode only removes comments and blank lines, so line structure stays intact. Full mode uses Terser, the industry-standard minifier, to rename variables and remove all unneeded characters.

Is my code uploaded?

No. Both modes run in your browser. Terser is downloaded from a public CDN the first time you use Full mode.

Why did Full mode show an error?

Terser needs valid JavaScript. The error points to the line with a syntax problem.