How to Edit Hosts File with PowerToys on Windows 11
Editing your computer’s “hosts” file is a great way to control how your machine connects to specific websites. Usually, this is a tricky process that requires digging into deep system folders. With powertoys-in-windows-11/" class="sal-link" rel="noopener" target="_blank" data-sal-id="13958">Microsoft PowerToys, you can do it safely and quickly.
Why use the Hosts File Editor?
Your computer uses the hosts file to map website names to specific IP addresses. By editing this file, you can tell your computer to redirect a website to a different location or block it entirely. This is useful for web developers or anyone who wants to customize their network traffic.
What happens when you finish?
Once you add a new entry, your computer will immediately prioritize your custom settings. When you type a web address into your browser, your system will check your new entry before looking anywhere else.
Microsoft PowerToys is a collection of free tools from Microsoft that helps you customize your Windows experience. One of these tools is the Hosts File Editor.
How to use the Hosts File Editor
First, install the PowerToys on Windows. Once installed, open the PowerToys app and select Hosts File Editor from the menu on the left.

On the right side of the screen, find the Enable Hosts File Editor box and flip the switch to On.
[Requires Admin Privileges] Next, select the Launch as administrator box and flip the switch to On. This gives the app permission to make changes to your system files.

If prompted, restart the PowerToys app to make sure your changes are saved. Now, go back to the Hosts File Editor screen and click the button labeled Launch Host File Editor.

To add a new connection, click the New entry button.

A window will pop up. Enter the IP address (for example: 127.0.0.1) and the host name you want to link to it. Click Add to finish.

Summary
The PowerToys Hosts File Editor makes a complex task simple. By using this tool, you avoid the need to manually open sensitive files located in C:\Windows\System32\drivers\etc using a text editor. You can now manage your local network settings through a clean, user-friendly interface.
Was this guide helpful?
Leave a Reply Cancel reply