You can edit the hosts file with any text editor. There are a variety available, but both Windows 10 and 11 come with Notepad, and I'd recommend sticking to that.
A Hosts file is the easiest way to provide name resolution for the network's computers. It can be used to speed up domain names or block them. BlueLife Hosts editor is a Portable freeware to simplify “hosts” file editing Process.