Hosts File Builder
Build and clean a hosts file: add entries, merge a blocklist, remove duplicates and check the IP and host name syntax of every line.
- Free
- No sign-up
- Works on any device
About Hosts File Builder
Cleans and extends a hosts file. Paste your current file, add entries as an IP address followed by host names, and merge a blocklist in hosts format or as one domain per line. The tool checks every line for a valid IPv4 or IPv6 address and valid host names, lists the lines with problems, removes duplicates, can lowercase names, split aliases onto separate lines, sort the result and align the columns. Blocked domains point to 0.0.0.0 or 127.0.0.1, and names that map to two different addresses are reported.
How to use Hosts File Builder
- Paste your current hosts file, then add the entries you want in the second box.
- Paste a blocklist if you use one, and choose the block address, sorting and spacing.
- Check the problem list, then copy or download the new file and replace your hosts file after making a backup.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Where is the hosts file?
Windows keeps it in the System32 drivers etc folder, and Linux and macOS use /etc/hosts. You need administrator or root rights to save changes there, and it is wise to keep a copy first.
Why use 0.0.0.0 for blocked sites?
0.0.0.0 makes the connection fail at once, while 127.0.0.1 sends the request to your own computer, which may answer slowly or show a local web server. Most blocklists use 0.0.0.0.
Do wildcards work in a hosts file?
No. Each host name must be listed exactly, and a pattern such as *.example.com is not valid. Blocking every subdomain needs a DNS level tool instead.
Is Hosts File Builder free?
Yes. Hosts File Builder on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.