How Do I Add a Web Server to Chrome?


Scott Campbell

Adding a web server to Chrome can be a useful tool for web developers and enthusiasts who want to test and preview web pages locally. By setting up a web server in Chrome, you can easily view your HTML, CSS, and JavaScript files without the need for an internet connection or uploading them to a remote server.

Why Add a Web Server to Chrome?

Before we dive into the steps of adding a web server to Chrome, let’s understand why it’s beneficial:

  • Local Development: A web server allows you to develop and test your website or web application locally before deploying it on a live server.
  • Offline Access: With a local web server, you can access your website even when there’s no internet connection.
  • Error Debugging: It becomes easier to debug and fix errors by running your code on a local server rather than relying solely on browser tools.

Add the Web Server Extension

To add a web server to Chrome, you’ll need to install an extension called “Web Server for Chrome.” Follow these steps:

  1. Open the Chrome Web Store: Launch Google Chrome and navigate to the Chrome Web Store. You can do this by typing “chrome://extensions” in the address bar.
  2. Search for the Extension: In the search bar at the top left corner of the page, type “Web Server for Chrome” and press Enter.

    Click on the extension when it appears in the search results.

  3. Add the Extension: On the extension page, click on the “Add to Chrome” button located on the right side of the page. A confirmation dialog box will appear.
  4. Confirm the Installation: In the confirmation dialog box, click on “Add extension” to install the “Web Server for Chrome” extension. The extension will now be added to your Chrome browser.

Set Up and Use the Web Server

After adding the extension, you’ll need to configure and start the web server. Here’s how:

  1. Launch the Extension: Click on the extensions menu in Chrome, usually located near the address bar. Look for the “Web Server for Chrome” extension and click on it to launch it.
  2. Select Your Folder: In the extension window, click on “CHOOSE FOLDER” to select a folder containing your web files.

    You can choose any folder on your computer where your HTML, CSS, and JavaScript files are stored.

  3. Start the Web Server: Once you’ve selected a folder, click on the “START” button in the extension window. The web server will now start running with an assigned URL.

Note: Make sure to keep the extension window open while using the web server. Closing it will stop the server.

Access Your Web Server

To access your web server and view your website or web application locally, follow these steps:

  1. Copy URL: In the extension window, you’ll find an assigned URL for your web server. Click on it to copy it to your clipboard.
  2. Paste URL in Chrome: Open a new tab in Google Chrome and paste (Ctrl+V) the URL into the address bar.
  3. View Your Website: Press Enter to load the URL, and your website or web application will be displayed in the browser.

Note: Remember, the web server is running locally on your machine, so others won’t be able to access it unless they are connected to your network.


You have successfully added a web server to Chrome. Now you can develop and preview your web pages with ease.

Remember to stop the server when you’re done working by clicking on the “STOP” button in the extension window. Happy coding!

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy