Config Server Firewall

How to Edit Hosts File in Windows Using a GUI Tool (Easy Method)

In this guide, I’m going to show you an easy way to edit the hosts file in Windows using a GUI tool. Normally, we use Notepad, but if you do this often, a graphical interface can make things much easier.

In this guide, I’m going to show you:

How to Edit the Hosts File Using Notepad

Before we look at the easier way, let’s see how we normally edit the hosts file using Notepad:

  1. Open Notepad as Administrator: Search for Notepad, right-click it, and select Run as Administrator.
  2. Navigate to the Hosts File Path: Go to File > Open and navigate to: C:\Windows\System32\drivers\etc
  3. Show All Files: Switch the drop-down menu from "Text Documents (*.txt)" to All Files.
  4. Open the File: Select the file named hosts and open it.
  5. Add an Entry: For example, if you want to point example.com to the IP address 192.168.1.10, first add the IP address, put some spaces (you can put any number of spaces here), type the domain name, and save the file.

Example format:

192.168.1.10   example.com

So this is how we normally edit the hosts file in Windows.

A Better Way: Using the Hosts File Editor GUI

Now let's see how to do the same thing using a GUI tool called Hosts File Editor. This is a built-in part of Microsoft PowerToys.

Install Microsoft PowerToys

First, you have to install PowerToys. Go to the Microsoft Store and install the software called Microsoft PowerToys by Microsoft.

Enable the Hosts File Editor

Manage Your Hosts Records

Click on the Open Hosts File Editor button to open the interface.

Install Microsoft PowerToys
Hosts File Editor
Edit Windows Hosts File with a GUI
Edit Windows Hosts File with a GUI

Why Use a GUI Tool for Hosts File Editing?

Using a GUI tool like Hosts File Editor is useful because:

Conclusion

So that’s how you can edit the hosts file in Windows using a GUI tool.

If you do this often, this method is much easier compared to the traditional Notepad method.