Rules.JSON Generator is a simple and powerful tool that converts GitHub raw hosts files into a structured rules.json file. Perfect for organizing large lists of domains into a JSON format for various applications.
| Operating System | Status |
|---|---|
| Windows | ✅ Fully tested |
| Linux | |
| macOS |
For Windows users, you can download and use the pre-built .exe release for convenience:
Download Release
- ✅ Reads a GitHub raw hosts file directly.
- ✅ Skips
localhostentries and comments automatically. - ✅ Customizable starting ID (default = 1).
- ✅ Customizable priority (default = 1).
- ✅ Saves the generated
rules.jsonto any location of your choice. - ✅ User-friendly GUI interface.
-
Make sure you have Python 3.x installed:
Download Python -
Install required packages (if any, Tkinter comes pre-installed with most Python distributions).
-
Download or clone this repository:
git clone https://github.com/yourusername/rules-json-generator.git
cd Rules.JSON-Generator
python Rules.JSON-Generator.py