Windows

How to Edit Hosts File with PowerToys on Windows 11

Richard
Written by
Richard
Oct 8, 2023 Updated Apr 17, 2026 2 min read
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.

PowerToys Hosts File Editor

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.

Enabling the Hosts File Editor tool within Microsoft PowerToys settings

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.

Selecting Launch as administrator for the PowerToys Hosts File Editor

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

Interface for adding a new entry in PowerToys Hosts File Editor

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.

Entering IP address and hostname details in PowerToys Hosts File Editor

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?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

2458 articles → Twitter

📚 Related Tutorials

How to Edit Hosts File Easily with PowerToys on Windows 11
Windows How to Edit Hosts File Easily with PowerToys on Windows 11
How to Enable Quick Accent in Microsoft PowerToys
Windows How to Enable Quick Accent in Microsoft PowerToys
How to Enable File Preview in Windows 11 PowerToys
Windows How to Enable File Preview in Windows 11 PowerToys
How to Enable PowerToys Text Extractor in Windows 11
Windows How to Enable PowerToys Text Extractor in Windows 11

Leave a Reply

Your email address will not be published. Required fields are marked *