macOS · Windows · Linux
Your hosts file in one click. DNS flush included.
No terminal, no DNS cache to flush by hand. Turn an entry on, click Apply: your browser sees the new IP right away.
One-time payment · yours to keep · 14-day money-back guarantee
Try it right here. Nothing to install.
(Sample data)
A free editor writes the file.
Here, the change takes effect.
SwitchHosts and Gas Mask write the file too, and if a free editor is enough for you, use it. The difference is everything that happens after you save.
Michael, independent developer. I built ToggleHosts because I kept losing afternoons to hosts file changes that were already saved. One person, one product, and I answer every email myself.
More about the project →$4.99, once.
Cheaper than the hour you lost last week.
No subscription, no account, no telemetry. You keep your version for life and get a year of updates.
It pays for itself the first afternoon a stale cache doesn't cost you.
Two machines? Dual, $8.99 · A team? $15.00 / seat with admin dashboard and CLI. Compare licenses →
No. ToggleHosts changes the local hosts file on your machine. Only your computer then resolves the domain to the selected environment: neither the DNS zone nor what visitors see changes.
Yes. ToggleHosts backs up the file before every change, and you restore it in one click.
Yes. ToggleHosts runs the right commands for your operating system and also flushes the DNS cache of your configured browsers, with no manual step.
A Solo license is tied to one machine at a time. To switch machines, use "Change computer" in the app's Account tab. A Dual license covers two machines for one person. For more devices or a team, get a Team license (from 2 seats).
