You can disable JavaScript in Chrome, but it requires going through Settings rather than a simple toggle

Chrome does not have a built-in on-off switch for JavaScript in the main menu. To turn it off, you need to open Chrome's Settings, navigate to Privacy and Security, then Site Settings, and finally find the JavaScript option. Once there, you can block JavaScript on all websites or create exceptions for specific sites you trust.

Most people leave JavaScript on because many websites stop working without it — login forms fail, videos won't play, and interactive features disappear. But if you want to disable it for security reasons, to reduce tracking, or to test how a website works without scripts, the process takes about two minutes.

Key Takeaways

  • JavaScript is disabled through Settings > Privacy and Security > Site Settings > JavaScript, not through a quick menu option.
  • Turning off JavaScript globally breaks most modern websites, so consider blocking it only on specific sites instead.
  • You can allow JavaScript on individual websites even after disabling it everywhere else by adding those sites to an exceptions list.
  • Disabling JavaScript does not significantly improve security on its own, since most tracking and malware come through other routes.

The step-by-step path to disable JavaScript for all sites

Open Chrome and click the three vertical dots in the top right corner. Select Settings from the dropdown menu. On the left sidebar, click Privacy and Security, then select Site Settings from the options that appear.

In the Site Settings menu, scroll down until you see JavaScript. Click on it. You will see a toggle labeled "Allowed (recommended)" — click that toggle to turn it off. The toggle will change to "Not allowed," and JavaScript will now be blocked on every website you visit in Chrome.

If you change your mind, return to the same menu and click the toggle again to re-enable JavaScript.

How to block JavaScript on just a few websites instead of everywhere

Disabling JavaScript globally is rarely practical because most websites depend on it. A better approach is to leave JavaScript on by default but block it on specific sites where you do not trust the scripts running.

Go to Settings > Privacy and Security > Site Settings > JavaScript. Under "Not allowed," click Add to add a website to the blocked list. Type the website address (for example, example.com) and click Add. JavaScript will now be blocked only on that site, while remaining on everywhere else.

To remove a site from the blocked list, find it under "Not allowed," click the three dots next to it, and select Remove.

How to allow JavaScript on specific sites when you have disabled it globally

If you have turned off JavaScript for all sites but need it to work on certain websites, you can create an exceptions list. Go back to Settings > Privacy and Security > Site Settings > JavaScript.

Under "Allow," click Add and type the website address where you want JavaScript to remain active. Click Add. That site will now run JavaScript even though it is blocked everywhere else. You can add as many sites as you need to this exceptions list.

Why you might want to disable JavaScript and what actually happens

Some people disable JavaScript thinking it will stop tracking or prevent malware. In reality, most tracking happens through cookies and server logs, not JavaScript alone. Malware usually arrives through downloads, phishing emails, or unpatched software vulnerabilities — not through website scripts.

Legitimate reasons to disable JavaScript include testing how a website works without interactive elements, reducing battery drain on older devices, or blocking scripts from sites you do not trust. If your goal is privacy or security, disabling JavaScript is less effective than using a privacy-focused browser extension, keeping Chrome updated, or avoiding suspicious websites altogether.

What breaks when JavaScript is off

With JavaScript disabled, you will notice that many websites stop working properly. Login forms may not submit. Dropdown menus will not open. Videos embedded on pages will not play. Maps will not load. Real-time notifications and live chat features will disappear. Some pages will display error messages or show blank sections where interactive content should be.

Even basic features like "show more" buttons or image galleries often rely on JavaScript. If you disable it globally, you will spend a lot of time adding exceptions for sites you actually use. This is why most people keep JavaScript on and only block it on sites they specifically distrust.

Checking whether JavaScript is currently on or off

To see the current status of JavaScript in Chrome, go to Settings > Privacy and Security > Site Settings > JavaScript. If the toggle shows "Allowed (recommended)," JavaScript is on. If it shows "Not allowed," JavaScript is off.

You can also test whether JavaScript is working on a specific website by opening the browser's developer tools (press Ctrl+Shift+I on Windows or Cmd+Option+I on Mac), clicking the Console tab, and looking for any error messages. If you see messages about JavaScript being blocked, that confirms it is off for that site.

Frequently Asked Questions

Does disabling JavaScript make Chrome more secure?

Not significantly. Most malware and tracking happen through other routes like cookies, downloads, and server logs. Disabling JavaScript may block some malicious scripts, but it breaks legitimate websites and is not a substitute for keeping Chrome updated, using strong passwords, and avoiding suspicious links.

Can I disable JavaScript for just one tab instead of an entire website?

No, Chrome does not offer per-tab JavaScript control. You can only disable it globally or by website. If you need JavaScript off for just one tab, you would have to add that site to your blocked list, reload the tab, then remove the site from the list afterward.

Will disabling JavaScript stop ads from showing?

Some ads rely on JavaScript to load and display, so disabling it may block those. However, many ads are served directly from the server and will still appear. For more effective ad blocking, consider using a dedicated ad-blocking extension instead.

What if a website says JavaScript is required but I have it turned on?

This usually means JavaScript is blocked for that specific site even though it is enabled globally. Go to Settings > Privacy and Security > Site Settings > JavaScript and check if the site is listed under "Not allowed." If it is, remove it from that list. You may also need to clear your browser cache and reload the page.

Does disabling JavaScript affect Chrome extensions?

No. Extensions run independently of the JavaScript setting for websites. Disabling JavaScript only affects scripts that run on web pages, not the code that powers your installed extensions.