Compare TOML files
Put two TOML files side by side, such as a Cargo.toml before and after a dependency update, two pyproject.toml files, or the same config from two environments, and see what changed, line by line and word by word.
Same layout on both sides
Format both sides to tidy the spacing, inline tables and arrays the same way, so spacing alone is never reported as a change. The structure is kept as written: a table written as [server] on one side and as server.port = 8080 on the other still shows as a difference.
Key order
Turn on Sort keys before formatting to order the keys of every table alphabetically (tables keep their order), so keys that merely moved do not show up as changes.
Dependency updates at a glance
Comparing two Cargo.toml or pyproject.toml files shows exactly which versions moved: the changed numbers are highlighted inside each line.
The text, not just the meaning
Formatting keeps comments, and strings, numbers and dates exactly as written, so 1_000 against 1000, or 'a' against "a", still shows as a difference: the files are compared as they are written. To compare only what they mean, convert each side to JSON first (Convert → JSON, then Use as text).
Find each diff
Changed lines and words are highlighted with every line shown, the diffs are counted, and the arrows jump from one diff to the next; the count opens a list of just the diffs. Both sides stay editable as the highlights follow, and Swap exchanges them.
Private: nothing is uploaded
Formatting, checking and comparing all happen in your browser. Your documents are saved in the browser's own storage on this computer, not on a server, so they never leave your device.
With your permission, we count anonymous visits (which pages and tools are used), never what you type. See Privacy.
Questions
How do I compare two TOML files?
Paste or open one on each side, or drop each file on its side, then Format both, with Sort keys on if the key order may differ.
Why does a table that moved show as a change?
Sort keys orders the keys inside each table, but tables keep their place in the file, as their order can matter to the program reading it.
Is my data uploaded anywhere?
Your documents aren't: everything runs in your browser, and they are saved on your computer, in the browser's storage for this site. With your permission we count anonymous visits, never their content.
More tools
- Formatter & Converter for JSON, YAML, XML, SQL
- JSON Diff – Compare Two JSON Files Online
- YAML Diff – Compare Two YAML Files Online
- TOML Formatter & Validator
- CSV Compare – Compare Two CSV Files Online
- XML Diff – Compare Two XML Files Online
- SQL Query Diff – Compare Two SQL Queries
- Protobuf Text Diff – Compare textproto Messages
- JSON to TOML Converter
- Free Online Diagram Maker & Editor
- Crypto Tools: Passwords, Keys, Hashes & JWTs
- Timestamp, Cron, Regex & UUID Utilities