Hosts File Editor manages Windows hosts entries in a grid instead of a text editor. It supports presets, filtering, tray control, and a scriptable command-line interface.
Overview
Hosts File Editor is a Windows application for viewing and changing the system hosts file that maps hostnames to IP addresses before DNS is used. It presents entries in an editable table with cut, copy, paste, enable, disable, sort, and filter, plus undo and redo and a one-click toggle for the entire file.
Day-to-day work can run without administrator rights; saving changes to the actual hosts file triggers a single on-demand UAC elevation. Users can archive named presets to switch between environments, merge external hosts files while skipping duplicates, and ping endpoints with progress shown in the status bar. The classic edition can minimize to the tray with a configurable global shortcut.
Two editions share the same core: a classic WinForms build and a modern WinUI build with light and dark themes. Both offer taskbar Jump Lists for presets and a headless command line via hfe.exe or the main executable for apply, enable, disable, import, merge, and list operations in scripts.
Distribution is through the Microsoft Store or portable zip builds for the classic edition on Windows 10 and 11, x64 or ARM64. Large hosts files are handled with async loading and performance-oriented editing features described in recent releases.
Key features
- Tabular editing with undo and redo
- Archive presets for environment switching
- Filter, sort, and enable or disable entries
- Merge hosts files skipping duplicates
- Automatic endpoint ping checks
- Taskbar Jump List preset switching
- Scriptable hfe command-line interface
- On-demand elevation when saving
Use cases
- Pointing domains at local development servers
- Blocking or allowing specific hostnames
- Testing deployments before DNS changes
- Switching hosts presets between environments
- Automating hosts toggles in build scripts