ToggleHosts

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.

ToggleHosts is a hosts file manager for Windows, macOS, and Linux. It edits the hosts file in a visual interface instead of the terminal, validates entries before writing them, backs up the file before every change, then flushes the system and configured browser DNS caches so the change takes effect immediately.

Get ToggleHosts · $4.99

One-time payment · yours to keep · 14-day money-back guarantee

demo

Try it right here. Nothing to install.

ToggleHosts - demo
v1.2 · demo

Acme · dev

dev

Local development environment

StatusIPDomainCommentActions
127.0.0.1
app.dev.acme.local
Next.js front-end
127.0.0.1
api.dev.acme.local
Node backend
127.0.0.1
admin.dev.acme.local
Back-office
192.168.1.42
minio.dev.acme.local
Local S3 storage
127.0.0.1
mail.dev.acme.local
MailHog
127.0.0.1
ws.dev.acme.local
WebSockets
In sync
·Acme · dev · 4/6 active·Backup · just now

(Sample data)

Why pay

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.

the diff, before anything is written
ToggleHosts diff preview: one unsaved line, Cancel and Apply now
By hand · /etc/hosts
Free toolsSwitchHosts · Gas Mask
ToggleHosts
DNS cache after a change
Two commands, then the browser cache by hand
Up to you
Flushed automatically (system and browsers)
Entry validation
A typo kills resolution silently
Varies by tool
Invalid IPs and domains refused before writing
Before the write
No idea what you are about to change
Often no preview
Preview of the exact lines that change
Undo a bad change
Rebuild a file that used to work
Often no backup
Backup before every change, one-click restore
Switching environments
Blocks to comment and uncomment
Limited profiles
Named environments, one click
A blocker skews the test
You won't know
Not detected
Alert when AdGuard, NextDNS or WARP interferes
Who builds this

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 →
pricing

$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.

For scale
One hour of a developer's time$60
ToggleHosts, once, for life$4.99

It pays for itself the first afternoon a stale cache doesn't cost you.

14-day money-back guarantee: one email, no questions asked.
Download links for macOS, Windows and Linux land in your inbox immediately.
Activation with your purchase email. Move to another machine yourself, anytime.
Secure payment via Creem · card, Apple Pay, Google Pay.

Two machines? Dual, $8.99 · A team? $15.00 / seat with admin dashboard and CLI. Compare licenses →

Solo License
1 person · 1 machine
$4.99one-time
Buy and download nowDownload links by email · takes about a minute
Unlimited entries and named environments
Automatic DNS cache flush · system and browsers
Diff preview and strict IPv4 / IPv6 validation
Backup before every change, one-click restore
Command palette, bulk import, JSON import / export
macOS, Windows and Linux, same app
100 % local · no account, nothing synced
1 year of updates, version kept for life
faq

Questions before you start?

Still unsure? Contact support: a real person answers.

There is no free trial, but there is no risk either. You can run the whole loop in the demo above (named environment, diff, backup, DNS cache flush), and if the app is not for you, you can ask for a full refund within 14 days of purchase, no questions asked, with a single email. Your license is yours to keep and includes 1 year of updates.

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).

Stop debugging an edit that was right all along.

Get ToggleHosts · $4.99One-time payment · yours to keep · 14-day money-back guarantee