How to Disable JavaScript in Chrome

You can turn JavaScript off in Chrome for every site, for one site, or, if you are testing a page, for one tab. On a computer, the quickest way is to copy chrome://settings/content/javascript into the address bar and select Don’t allow sites to use JavaScript. Google describes JavaScript as what sites usually use to display interactive features, like video games or web forms, so expect many sites to stop working properly. If a site is broken because JavaScript is already off, see how to enable JavaScript in Chrome instead.

Choose how much to turn off

You want toUse
Block JavaScript everywhereThe default setting (below)
Block it on one site and keep it everywhere elseA site exception
Allow it on a few sites and block it everywhere elseThe default setting plus exceptions
Test how your own page works without itDevTools, one tab

Turn JavaScript off for all sites (computer)

  1. Open Chrome and select More (the three dots at the top right) > Settings.
  2. Select Privacy and security > Site settings.
  3. Select JavaScript.
  4. Select Don’t allow sites to use JavaScript.

To keep JavaScript for sites you trust, add them under Allowed to use JavaScript on the same page. These steps follow Google’s Change site settings permissions help.

Turn JavaScript off for one site

  1. Go to the site.
  2. To the left of the web address, select View site information > Site settings.
  3. Next to JavaScript, choose Block. The change saves automatically.

You can also add the site under Not allowed to use JavaScript on the JavaScript settings page.

Turn JavaScript off in one tab with DevTools (for testing)

From Google’s Disable JavaScript docs:

  1. Open DevTools: F12 or Ctrl + Shift + I on Windows and Linux, Cmd + Option + I on a Mac.
  2. Open the Command Menu: Ctrl + Shift + P (Cmd + Shift + P on a Mac).
  3. Start typing javascript, select Disable JavaScript and press Enter.
  4. Reload the page to see how it loads without JavaScript.

JavaScript stays off in that tab only while DevTools is open. To turn it back on, run Enable JavaScript from the Command Menu or close DevTools. More on DevTools in our DevTools basics guide.

On Android

  1. Open the Chrome app and tap More > Settings.
  2. Under Advanced, tap Site settings > JavaScript.
  3. Turn JavaScript off.

For one site only: on the site, tap More > Site controls > Permissions, then change JavaScript if it is listed. Reset permissions clears that site’s own settings. Steps from Google’s Android site settings help.

On iPhone and iPad

Chrome for iPhone and iPad has no setting to turn JavaScript off. Google’s site settings help for iPhone and iPad lists only three content settings: Block pop-ups, Default apps and Default site view.

Turn JavaScript back on

Go back to the same setting and select Sites can use JavaScript, or set the site back to Allow. Chrome’s default lets sites use JavaScript. Step by step help is on our enable JavaScript page.