SwitchHosts for MAC

Free, open-source Mac app to manage and switch hosts files, with local and remote hosts, syntax highlighting, groups and a menu bar switch.

SwitchHosts Overview

SwitchHosts is a free, open-source app for managing your Mac's hosts file. Instead of editing /etc/hosts by hand, you keep several sets of hosts entries, such as one for development and one for testing, and switch between them quickly from the main window or the menu bar. Entries can be local, remote (downloaded from a web address and refreshed on a schedule or at startup), grouped or sorted into folders, and the editor has syntax highlighting plus find and replace across all entries.

SwitchHosts is made by oldj and released under the Apache 2.0 licence. Version 5 is built on Tauri, and the Mac app is universal for Apple Silicon and Intel Macs, needing macOS 10.15 or later. Version 5.0.3 adds batch domain resolution over DNS over HTTPS, import previews and history management. Your data is kept in the ~/.SwitchHosts folder; copy that folder for a complete backup.

Key Features

SwitchHosts makes the hosts file easy to manage and switch.

  • Many hosts sets: manage system, local, remote, group and folder entries.
  • Quick switching: turn entries on or off from the window or menu bar.
  • Remote hosts: refresh by hand, on a schedule or at startup.
  • Editor: syntax highlighting with find and replace across entries.
  • Domain resolution: turn domains into hosts entries via DNS over HTTPS.
  • Import and export: back up data or import it from a URL.
  • Trashcan: restore or delete removed entries later.
  • Local HTTP API: control SwitchHosts from other tools, with a custom port.

What’s New in Version 5.0.3

SwitchHosts 5.0.3 adds domain resolution, import previews and history management.

  • Resolve domains into hosts entries via DNS over HTTPS, in batches, with cached-IP fallback
  • Preview imported configurations, then append entries or replace everything
  • Turn system hosts history on or off, set retention limits and clear history
  • Change the HTTP API port without restarting
  • Open links in hosts comments with Cmd + Click

SwitchHosts FAQ

Is SwitchHosts free?

Yes. SwitchHosts is free and open source under the Apache 2.0 licence.

What does SwitchHosts do?

It manages your hosts file: you keep several sets of hosts entries and switch them on or off quickly instead of editing /etc/hosts by hand.

Which macOS version does SwitchHosts need?

SwitchHosts 5.0.3 needs macOS 10.15 or later.

Does SwitchHosts run on Apple Silicon?

Yes. The Mac app is universal for Apple Silicon and Intel Macs.

Can SwitchHosts load hosts from the internet?

Yes. Remote hosts are downloaded from a web address and can be refreshed by hand, on a schedule or at startup.

Can I switch hosts from the menu bar?

Yes. You can switch hosts from the main window or the system tray in the menu bar.

Where does SwitchHosts store its data?

In the ~/.SwitchHosts folder. Copy the whole folder for a complete backup; the in-app export does not include preferences or history.

What is new in SwitchHosts 5.0.3?

Batch domain resolution via DNS over HTTPS, import previews, history management, a custom HTTP API port and Cmd + Click links in comments.

Can I install SwitchHosts with Homebrew?

Yes. Run brew install --cask switchhosts.

Where does the SwitchHosts download on switchhosts.FULLMAC.app come from?

The download button leads to the official SwitchHosts releases page on GitHub at https://github.com/oldj/SwitchHosts/releases/latest. switchhosts.FULLMAC.app does not change or repackage the app.

Similar Apps

FULLMAC.app does not host this app. Download buttons lead to the developer’s own pages.