ToggleHosts

Hosts file manager · macOS · Windows · Linux

The hosts file manager whose changes actually take effect.

Edit your hosts file in a real interface, hit Apply, and the system and browser DNS caches are flushed for you. The change takes effect on the first reload.

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, backs up the file before every apply, and flushes the system and configured browser DNS caches so the change takes effect immediately.

Get ToggleHosts · $8.99

One-time payment · Perpetual license · macOS, Windows, Linux

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) · See how it works before you install the app.

01 · EDIT

Pick an environment

Named environments per client or per project. Toggle an entry instead of commenting a block.

02 · CHECK

Read the diff

Invalid IPs and domains are refused before the write. You see the exact lines that will change.

03 · APPLY

Snapshot, then write

A backup is taken first, so a bad edit is one click from being undone.

04 · FLUSH

Caches cleared · 0.4 s

System resolver and your configured browsers. The first reload shows the new IP.

Why not just edit the file

Your edit was right.
The cache was lying.

The system resolver and every browser keep their own cache. Save the file and both keep answering with the old IP, which is where the lost hour goes, debugging code that was never broken.

SwitchHosts and Gas Mask write the file too, and if a free editor covers your need, take it. The difference is everything that happens after you hit save.

the diff, before anything is written
ToggleHosts diff preview: one unsaved line, Cancel and Apply now
THE SAME CHANGE, BY HAND
$ sudo nano /etc/hosts
$ sudo dscacheutil -flushcache
$ sudo killall -HUP mDNSResponder
$ open chrome://net-internals/#dns
no diff, no backup, no idea if it took
By hand · /etc/hosts
Free toolsSwitchHosts · Gas Mask
ToggleHosts
DNS cache after apply
Two commands, then the browser by hand
Manual, or not at all
System + configured browsers, automatic
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
Diff of the exact lines that change
Undo a bad apply
Rebuild a file that used to work
Often no backup
Snapshot every apply, one-click restore
Switching environments
Commented blocks you must remember
Limited profiles
Named environments, one click
Everything else it takes off your hands

One command palette instead of six commands.

Command palette - Cmd/Ctrl+K for every action, no command to remember.
Bulk import - paste a block of hosts lines, get entries.
Backups & restore - automatic before every apply, manual whenever.
Blocker alerts - warns you when AdGuard, NextDNS or WARP would skew a test.
Browser cache cleanup - Chrome, Safari, Firefox, Arc.
In-app updates - download and restart, no reinstall.
The ToggleHosts command palette, open on Report a bug
⌘K · the palette, at actual size
what people say

They stopped losing an hour to a cache that wouldn't let go.

Five minutes in the terminal per staging switch, gone. One click, cache flushed.

Alexandre Dupont
Lead Frontend · agency, 8 devs / 25 projects

No more wondering why the browser still hits the old IP. First tool I install now.

Sarah Chen
Freelance full-stack · 12 clients

We toggle environments all day without ever corrupting system config.

Thomas Mercier
Senior QA Lead · SaaS studio
pricing

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

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

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

There is no free trial. The walkthrough on this page shows the entire loop before you pay.
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, $12.99 · A team? $15.00 / seat with admin dashboard and CLI. Compared below ↓

Solo License
1 person · 1 machine
MOST POPULAR
$8.99one-time
Buy and download nowDownload links by email · takes about a minute
Unlimited entries and named environments
Automatic DNS flush · system and browsers
Diff preview and strict IPv4 / IPv6 validation
Backup before every apply, 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

Solo License

1 machine

$8.99one-time payment (1 yr updates)

Included

  • All core features included
  • 1 person · 1 device
  • Perpetual license (keep version for life)
  • 1 year of updates included
  • Self-serve device transfer

License & scale

Devices
1
License
Lifetime
Updates included
1 year
Release / change device
Admin dashboard & seat management
Shared environments & sync
Export members (CSV)
CLI
Support
Email
Compare every license
Features
Solo License1 machine$8.99one-time payment (1 yr updates)
−28%
Dual License2 machines$12.99one-time payment (1 yr updates)
Team License2+ seats$15.00/ seat · 2+ seats
License & scale
Devices11 / seat
LicenseLifetimeLifetime
Updates included1 year1 year
Release / change device
Admin dashboard & seat management
Shared environments & sync
Export members (CSV)
CLI
SupportEmailPriority
faq

Questions before you start?

Still unsure? Contact support - a human answers.

If a free editor covers your need, it may well be the right choice. What you get here is what happens after you hit save: entries validated before they reach the system file, a diff and a backup before every write, a warning when another tool interferes, and the system and browser caches flushed automatically. Same app on Windows, macOS and Linux, one-time purchase.

There is no free trial. The walkthrough on this page shows the entire loop before you pay: named environment, diff, backup, DNS flush. Buying unlocks the download. Your license is perpetual 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 creates a backup before applying changes, so you can restore your hosts file in one click.

Yes. One click runs the correct DNS flush commands for your operating system, so changes take effect without manual steps.

A Solo license binds to one machine at a time. Use Change computer in Account when you replace hardware. Dual covers two machines for one person. For more devices or teammates, buy a Team license (2+ seats).

Stop debugging an edit that was right all along.

Get ToggleHosts · $8.99One-time · perpetual license · 1 year of updates