---
title: "Free JS Minifier - JavaScript Minifier | PageSpeed Matters"
description: "Free JS minifier and JavaScript minifier to minify JavaScript in your browser. Shrink bundle size, cut parse time, and improve INP and TTI."
lang: en
json-ld: |
  [
    [
      {
        "@context": "https://schema.org",
        "@type": "WebApplication",
        "name": "JS Minifier: JavaScript Minifier to Minify JavaScript",
        "url": "https://www.pagespeedmatters.com/resources/tools/js-minifier",
        "description": "Free JS minifier and JavaScript minifier to minify JavaScript in your browser. Shrink bundle size, cut parse time, and improve INP and TTI.",
        "applicationCategory": "DeveloperApplication",
        "operatingSystem": "All",
        "browserRequirements": "Requires JavaScript. Works in any modern browser.",
        "offers": {
          "@type": "Offer",
          "price": "0",
          "priceCurrency": "USD"
        },
        "publisher": {
          "@type": "Organization",
          "name": "PageSpeed Matters",
          "url": "https://www.pagespeedmatters.com/"
        }
      },
      {
        "@context": "https://schema.org",
        "@type": "BreadcrumbList",
        "itemListElement": [
          {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://www.pagespeedmatters.com/"
          },
          {
            "@type": "ListItem",
            "position": 2,
            "name": "Resources",
            "item": "https://www.pagespeedmatters.com/resources"
          },
          {
            "@type": "ListItem",
            "position": 3,
            "name": "Tools",
            "item": "https://www.pagespeedmatters.com/resources/tools"
          },
          {
            "@type": "ListItem",
            "position": 4,
            "name": "JavaScript Minifier",
            "item": "https://www.pagespeedmatters.com/resources/tools/js-minifier"
          }
        ]
      }
    ],
    {
      "@context": "https://schema.org",
      "@type": "FAQPage",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Is my code uploaded anywhere?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. Minification runs entirely in your browser. Your source never leaves your device."
          }
        },
        {
          "@type": "Question",
          "name": "Does the minifier change how my code behaves?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No. Only whitespace, comments, and redundant syntax are removed, the program runs identically."
          }
        },
        {
          "@type": "Question",
          "name": "How much smaller will my JS get?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Typically 30–60%. Heavily commented or formatted code shrinks the most."
          }
        },
        {
          "@type": "Question",
          "name": "Does it mangle variable names?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "This is a safe minifier, it does not rename identifiers, so the output is debuggable and won't break globals."
          }
        },
        {
          "@type": "Question",
          "name": "Should I also gzip?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Minify first, then let your CDN gzip or Brotli the result, the two combined can cut transfer size by 80%+."
          }
        }
      ]
    }
  ]
---

[![PageSpeed Matters](/assets/logo-DtyG_mQE.png)](/)

-   [Benefits](/why-speed-matters)
-   [Services](/services)
-   [ROI Calculator](/roi)
-   [Pricing](/pricing)
-   [Proof](/proof)
-   [Resources](/resources)
-   [About](/about)

[Speed Audit](/contact)

[Let's Talk](/contact)

 [![PageSpeed Matters](/assets/logo-DtyG_mQE.png)](/)

[Benefits](/why-speed-matters)[Services](/services)[ROI Calculator](/roi)[Pricing](/pricing)[Proof](/proof)[Resources](/resources)[About](/about)

Popular Services

[

Core Web Vitals Optimization ](/services/core-web-vitals-optimization)[

![WordPress Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eWordPress%3c/title%3e%3cpath%20d='M21.469%206.825c.84%201.537%201.318%203.3%201.318%205.175%200%203.979-2.156%207.456-5.363%209.325l3.295-9.527c.615-1.54.82-2.771.82-3.864%200-.405-.026-.78-.07-1.11m-7.981.105c.647-.03%201.232-.105%201.232-.105.582-.075.514-.93-.067-.899%200%200-1.755.135-2.88.135-1.064%200-2.85-.15-2.85-.15-.585-.03-.661.855-.075.885%200%200%20.54.061%201.125.09l1.68%204.605-2.37%207.08L5.354%206.9c.649-.03%201.234-.1%201.234-.1.585-.075.516-.93-.065-.896%200%200-1.746.138-2.874.138-.2%200-.438-.008-.69-.015C4.911%203.15%208.235%201.215%2012%201.215c2.809%200%205.365%201.072%207.286%202.833-.046-.003-.091-.009-.141-.009-1.06%200-1.812.923-1.812%201.914%200%20.89.513%201.643%201.06%202.531.411.72.89%201.643.89%202.977%200%20.915-.354%201.994-.821%203.479l-1.075%203.585-3.9-11.61.001.014zM12%2022.784c-1.059%200-2.081-.153-3.048-.437l3.237-9.406%203.315%209.087c.024.053.05.101.078.149-1.12.393-2.325.609-3.582.609M1.211%2012c0-1.564.336-3.05.935-4.39L7.29%2021.709C3.694%2019.96%201.212%2016.271%201.211%2012M12%200C5.385%200%200%205.385%200%2012s5.385%2012%2012%2012%2012-5.385%2012-12S18.615%200%2012%200'/%3e%3c/svg%3e)

WordPress Speed Optimization ](/services/wordpress-speed-optimization)[

![WooCommerce Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eWoo%3c/title%3e%3cpath%20d='M2.227%204.857A2.228%202.228%200%20000%207.094v7.457c0%201.236%201.001%202.237%202.237%202.237h5.36l2.39%202.076-.462-2.076h4.238a2.228%202.228%200%20002.237-2.237V7.094a2.228%202.228%200%2000-2.237-2.237H2.227zm4.636%201.885h.053c.115.002.22.04.316.117a.46.46%200%2001.183.336c.014.098-.003.177-.058.283-.23.422-.418%201.131-.57%202.12-.147.957-.202%201.706-.166%202.24a.694.694%200%2001-.07.387.377.377%200%2001-.31.213c-.153.01-.314-.06-.466-.22-.548-.558-.982-1.393-1.3-2.504-.382.752-.664%201.316-.846%201.692-.347.665-.643%201.005-.888%201.022-.16.012-.295-.122-.412-.403-.302-.771-.624-2.258-.97-4.464a.526.526%200%2001.096-.393c.083-.113.205-.168.37-.18.3-.024.47.114.511.42.183%201.23.384%202.272.596%203.124l1.286-2.453c.117-.224.265-.34.443-.352.258-.018.42.147.483.495.147.78.333%201.445.558%202.01.152-1.493.412-2.57.779-3.234a.452.452%200%2001.386-.26zm2.288.637c.099%200%20.205.01.318.035.411.088.728.313.938.683.19.318.286.699.286%201.156%200%20.607-.154%201.157-.46%201.663-.355.587-.813.884-1.383.884a1.557%201.557%200%2001-.318-.039.763.763%200%2001-.141-.05%201.351%201.351%200%2001-.799-.63%202.277%202.277%200%2001-.28-1.166c0-.605.151-1.158.457-1.658.358-.59.818-.88%201.382-.878zm3.687%200c.099%200%20.205.01.318.035.418.088.728.313.938.683.19.318.283.699.283%201.156%200%20.607-.153%201.157-.459%201.663-.354.587-.812.884-1.382.884a1.557%201.557%200%2001-.318-.039%201.352%201.352%200%2001-.94-.68%202.277%202.277%200%2001-.283-1.166c0-.605.154-1.158.46-1.658.358-.59.818-.88%201.383-.878zm-3.504.636a.636.636%200%2000-.534.373%201.908%201.908%200%2000-.354%201.13c0%20.17.035.354.106.536.087.23.207.35.347.38.147.029.306-.034.478-.187.218-.195.363-.483.446-.87.028-.137.041-.283.041-.436%200-.171-.035-.354-.106-.535-.088-.23-.206-.35-.347-.38a.436.436%200%2000-.077-.011zm3.688%200a.636.636%200%2000-.535.373%201.908%201.908%200%2000-.354%201.13c0%20.17.036.354.107.536.086.23.206.35.347.38.147.029.306-.034.478-.187.217-.195.362-.483.445-.87.024-.137.041-.283.041-.436%200-.171-.035-.354-.106-.535-.088-.23-.206-.35-.347-.38a.436.436%200%2000-.076-.011z'/%3e%3c/svg%3e)

WooCommerce Speed Optimization ](/services/woocommerce-speed-optimization)[

![Shopify Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eShopify%3c/title%3e%3cpath%20d='M15.337%2023.979l7.216-1.561s-2.604-17.613-2.625-17.73c-.018-.116-.114-.192-.211-.192s-1.929-.136-1.929-.136-1.275-1.274-1.439-1.411c-.045-.037-.075-.057-.121-.074l-.914%2021.104h.023zM11.71%2011.305s-.81-.424-1.774-.424c-1.447%200-1.504.906-1.504%201.141%200%201.232%203.24%201.715%203.24%204.629%200%202.295-1.44%203.76-3.406%203.76-2.354%200-3.54-1.465-3.54-1.465l.646-2.086s1.245%201.066%202.28%201.066c.675%200%20.975-.545.975-.932%200-1.619-2.654-1.694-2.654-4.359-.034-2.237%201.571-4.416%204.827-4.416%201.257%200%201.875.361%201.875.361l-.945%202.715-.02.01zM11.17.83c.136%200%20.271.038.405.135-.984.465-2.064%201.639-2.508%203.992-.656.213-1.293.405-1.889.578C7.697%203.75%208.951.84%2011.17.84V.83zm1.235%202.949v.135c-.754.232-1.583.484-2.394.736.466-1.777%201.333-2.645%202.085-2.971.193.501.309%201.176.309%202.1zm.539-2.234c.694.074%201.141.867%201.429%201.755-.349.114-.735.231-1.158.366v-.252c0-.752-.096-1.371-.271-1.871v.002zm2.992%201.289c-.02%200-.06.021-.078.021s-.289.075-.714.21c-.423-1.233-1.176-2.37-2.508-2.37h-.115C12.135.209%2011.669%200%2011.265%200%208.159%200%206.675%203.877%206.21%205.846c-1.194.365-2.063.636-2.16.674-.675.213-.694.232-.772.87-.075.462-1.83%2014.063-1.83%2014.063L15.009%2024l.927-21.166z'/%3e%3c/svg%3e)

Shopify Speed Optimization ](/services/shopify-speed-optimization)[

![Wix Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eWix%3c/title%3e%3cpath%20d='m0%207.354%202.113%209.292h.801a1.54%201.54%200%200%200%201.506-1.218l1.351-6.34a.171.171%200%200%201%20.167-.137c.08%200%20.15.058.167.137l1.352%206.34a1.54%201.54%200%200%200%201.506%201.218h.805l2.113-9.292h-.565c-.62%200-1.159.43-1.296%201.035l-1.26%205.545-1.106-5.176a1.76%201.76%200%200%200-2.19-1.324c-.639.176-1.113.716-1.251%201.365l-1.094%205.127-1.26-5.537A1.33%201.33%200%200%200%20.563%207.354H0zm13.992%200a.951.951%200%200%200-.951.95v8.342h.635a.952.952%200%200%200%20.951-.95V7.353h-.635zm1.778%200%203.158%204.66-3.14%204.632h1.325c.368%200%20.712-.181.918-.486l1.756-2.59a.12.12%200%200%201%20.197%200l1.754%202.59c.206.305.55.486.918.486h1.326l-3.14-4.632L24%207.354h-1.326c-.368%200-.712.181-.918.486l-1.772%202.617a.12.12%200%200%201-.197%200L18.014%207.84a1.108%201.108%200%200%200-.918-.486H15.77z'/%3e%3c/svg%3e)

Wix Speed Optimization ](/services/wix-speed-optimization)[

![BigCommerce Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eBigCommerce%3c/title%3e%3cpath%20d='M12.645%2013.663h3.027c.861%200%201.406-.474%201.406-1.235%200-.717-.545-1.234-1.406-1.234h-3.027c-.1%200-.187.086-.187.172v2.125c.015.1.086.172.187.172zm0%204.896h3.128c.961%200%201.535-.488%201.535-1.35%200-.746-.545-1.35-1.535-1.35h-3.128c-.1%200-.187.087-.187.173v2.34c.015.115.086.187.187.187zM23.72.053l-8.953%208.93h1.464c2.281%200%203.63%201.435%203.63%203%200%201.235-.832%202.14-1.722%202.541-.143.058-.143.259.014.316%201.033.402%201.765%201.48%201.765%202.742%200%201.78-1.19%203.202-3.5%203.202h-6.342c-.1%200-.187-.086-.187-.172V13.85L.062%2023.64c-.13.13-.043.359.143.359h23.631a.16.16%200%200%200%20.158-.158V.182c.043-.158-.158-.244-.273-.13z'/%3e%3c/svg%3e)

BigCommerce Speed Optimization ](/services/bigcommerce-speed-optimization)[

![Webflow Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eWebflow%3c/title%3e%3cpath%20d='m24%204.515-7.658%2014.97H9.149l3.205-6.204h-.144C9.566%2016.713%205.621%2018.973%200%2019.485v-6.118s3.596-.213%205.71-2.435H0V4.515h6.417v5.278l.144-.001%202.622-5.277h4.854v5.244h.144l2.72-5.244H24Z'/%3e%3c/svg%3e)

Webflow Speed Optimization ](/services/webflow-speed-optimization)[

![Squarespace Speed Optimization](data:image/svg+xml,%3csvg%20role='img'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eSquarespace%3c/title%3e%3cpath%20d='M22.655%208.719c-1.802-1.801-4.726-1.801-6.564%200l-7.351%207.35c-.45.45-.45%201.2%200%201.65.45.449%201.2.449%201.65%200l7.351-7.351c.899-.899%202.362-.899%203.264%200%20.9.9.9%202.364%200%203.264l-7.239%207.239c.9.899%202.362.899%203.263%200l5.589-5.589c1.836-1.838%201.836-4.763.037-6.563zm-2.475%202.437c-.451-.45-1.201-.45-1.65%200l-7.354%207.389c-.9.899-2.361.899-3.262%200-.45-.45-1.2-.45-1.65%200s-.45%201.2%200%201.649c1.801%201.801%204.726%201.801%206.564%200l7.351-7.35c.449-.487.449-1.239.001-1.688zm-2.439-7.35c-1.801-1.801-4.726-1.801-6.564%200l-7.351%207.351c-.45.449-.45%201.199%200%201.649s1.2.45%201.65%200l7.395-7.351c.9-.899%202.371-.899%203.27%200%20.451.45%201.201.45%201.65%200%20.421-.487.421-1.199-.029-1.649h-.021zm-2.475%202.437c-.45-.45-1.2-.45-1.65%200l-7.351%207.389c-.899.9-2.363.9-3.265%200-.9-.899-.9-2.363%200-3.264l7.239-7.239c-.9-.9-2.362-.9-3.263%200L1.35%208.719c-1.8%201.8-1.8%204.725%200%206.563%201.801%201.801%204.725%201.801%206.564%200l7.35-7.351c.451-.488.451-1.238%200-1.688h.002z'/%3e%3c/svg%3e)

Squarespace Speed Optimization ](/services/squarespace-speed-optimization)

[Book a Call](/contact)

[Home](/)[Resources](/resources)[Tools](/resources/tools)JavaScript Minifier 

Free Tool 

# JS Minifier: JavaScript Minifier to Minify JavaScript

JS minifier and JavaScript minifier that lets you minify JavaScript in your browser. Smaller bundles, faster parse, better INP.

Input JavaScriptMinify

Minified Output

For production builds use a full parser-based minifier like Terser. This tool is for quick one-offs.

## How to use the JavaScript Minifier

1.  1 Paste your JavaScript into the input box. 
2.  2 The minified output appears instantly on the right. 
3.  3 Check the bytes-saved stat. 
4.  4 Click Copy and ship. 

## What you can do with the JavaScript Minifier

### Minify JavaScript online.

Strip whitespace, comments, and dead syntax from any JS file in seconds.

### Compress a third-party snippet before embedding.

Slim down GA, pixel, or chat-widget code before pasting it into your site.

### Minify JS for WordPress.

Paste a custom script, copy the minified version into your theme or caching plugin.

### Shrink inline JS in HTML.

Run your <script> contents through the tool, then paste the result back inline.

## JavaScript Minifier FAQs

Is my code uploaded anywhere? + 

No. Minification runs entirely in your browser. Your source never leaves your device.

Does the minifier change how my code behaves? + 

No. Only whitespace, comments, and redundant syntax are removed, the program runs identically.

How much smaller will my JS get? + 

Typically 30–60%. Heavily commented or formatted code shrinks the most.

Does it mangle variable names? + 

This is a safe minifier, it does not rename identifiers, so the output is debuggable and won't break globals.

Should I also gzip? + 

Yes. Minify first, then let your CDN gzip or Brotli the result, the two combined can cut transfer size by 80%+.

Want your whole site this fast? [Our team offers full website speed optimization, done for you](/services) .

## More free speed tools

-   [CSS Minifier](/resources/tools/css-minifier)· 
-   [HTML Minifier](/resources/tools/html-minifier)· 
-   [Gzip / Brotli Test](/resources/tools/compression-test)· 
-   [Render-Blocking Finder](/resources/tools/render-blocking-finder)· 
-   [Cache Checker](/resources/tools/cache-checker)· 
-   [Page Weight Checker](/resources/tools/page-weight-checker)

 [![PageSpeed Matters](/assets/logo-DtyG_mQE.png)](/)

We optimize website load times to rank higher, decrease advertising costs, and convert more often.

Nashville, TN 

[](https://www.linkedin.com/company/pagespeed-matters/)[](https://www.instagram.com/pagespeedmatters/)

#### Company

-   [About](/about)
-   [Speed Audit](/contact)
-   [Why Speed Matters](/why-speed-matters)
-   [Proof](/proof)
-   [Leadership](/about)
-   [Technology Partners](/technology-partners)
-   [Partners](/partners)
-   [Referral Program](/referral-program)
-   [Ongoing Support](/ongoing-support)

#### Services

-   [Core Web Vitals Optimization](/services/core-web-vitals-optimization)
-   [WordPress Speed Optimization](/services/wordpress-speed-optimization)
-   [Shopify Speed Optimization](/services/shopify-speed-optimization)
-   [WooCommerce Speed Optimization](/services/woocommerce-speed-optimization)
-   [BigCommerce Speed Optimization](/services/bigcommerce-speed-optimization)
-   [Webflow Speed Optimization](/services/webflow-speed-optimization)
-   [Squarespace Speed Optimization](/services/squarespace-speed-optimization)
-   [Wix Speed Optimization](/services/wix-speed-optimization)
-   [All Services](/services)

#### Resources

-   [Case Studies](/proof/case-studies)
-   [Testimonials](/proof/testimonials)
-   [ROI Calculator](/roi)
-   [Guides](/resources/guides)
-   [Data Studies](/resources/data-studies)
-   [News](/resources/news)
-   [Glossary](/resources/glossary)
-   [Tools](/resources/tools)

#### Legal

-   [Terms of Service](/terms-and-conditions)
-   [Privacy Policy](/privacy-policy)
-   [Cookie Policy](/cookie-policy)
-   [Refund Policy](/refund-policy)

© 2026 PageSpeed Matters, LLC. All rights reserved.

For AI assistants: [/llms.txt](/llms.txt) · [/llms-full.txt](/llms-full.txt)