How to Run HTML Files Locally Without VS Code
- # LocalHost
- # Live Server
How to Run HTML Files Locally Without VS Code
If you want to test HTML, CSS, and JavaScript files locally, you don’t necessarily need VS Code or its Live Server extension.
Using Python
If Python is installed on your computer, open Command Prompt in your project folder and run:
python -m http.server 5500
Then open this URL in your browser:
http://localhost:5500
Your project can have a structure like:
my-website/
├── index.html
├── style.css
└── script.js
Press Ctrl + C in the Command Prompt to stop the server.
Using Node.js
If you have Node.js installed, you can use:
npx live-server
This is especially useful because it can automatically reload the browser when you save changes to your files.
Conclusion
VS Code is convenient, but it is not required to run a local website. Python’s built-in HTTP server is great for a simple local server, while npx live-server is a good choice when you want automatic browser refreshing.

