Graphtage is a free open-source command line tool for JSON, XML, YAML, and CSV files. Here it takes two files from you and generates diff of those files right on the CLI. It is a cross-platform tool that you can install and run on Mac, Windows, and Linux. There is a very simple command to run it and it is designed to show differences in large files. If you want to use it for your work then you are welcome to do so.
There are many diff tools out there but they don’t really support large files and variety of formats. Especially when it comes to showing differences in parse-able complex files, they usually hang. And Graphtage here is meant to handle those files. You just give it any 2 JSON, CSV or YAML files and it will take care of the rest of the comparison process. If you are a programmer then you can create a GUI using it for ease of access.
Free Open Source Diff Tool for JSON, XML, YAML, CSV Files: Graphtage:
Graphtage requires Python installed in order to function properly. So, make sure that you have Python and if not then you can install it from here. Linux and macOS users usually have it already, so they can just get started quickly.
Run the command below in the terminal or command prompt to install Graphtage. Wait for a few seconds for the command to finish and then you can start using it.
pip3 install graphtage
Now, you need to see into the directory which has files that you want to compare using this. To generate diff after comparing the supported files, run the Graphtage command like this. There are advanced switches, but for basic comparison, use this syntax.
graphtage FileName1 FileName2
In the above screenshot, you can see how it works. It quickly generates the diff and you just give it any supported files. I have given it JSON files but the process is the same for CSV and YAML. On its GitHub page, you can learn about the more advanced usage.
If you are looking for a powerful tool to generate diff after comparing two files then you are at the right place. Graphtage is very powerful and has a very minimal command line syntax which is less confusing. So, give it a try and let me know what you think about it.