← All text tools

Config File Key Diff

Compare two .env, YAML, TOML, INI or properties files by key and list which settings are missing, extra or changed, whatever the order or comments.

  • Free
  • No sign-up
  • Works on any device

About Config File Key Diff

Comparing two configuration files line by line is noisy when keys are reordered or comments change. This tool reads both files with the rules of the chosen format (.env, YAML, TOML, INI or Java properties), turns every setting into a key such as server.port or items[0], and then lists the keys missing in B, the keys only in B and the keys whose values changed. Order, comments and blank lines are ignored. A switch hides the values so you can share the result without secrets. Example: PORT=3000 in A and PORT=4000 in B is reported as changed.

How to use Config File Key Diff

  1. Choose the format that both files use.
  2. Paste file A (for example the example or old file) and file B (the real or new one).
  3. Read the list of missing, extra and changed keys, and copy the summary.

Why use this tool?

Also known as

Frequently asked questions

How are nested YAML or TOML settings compared?

Nested keys are joined with dots, so a value inside server and then port is compared as server.port. List items are numbered, like ports[0] and ports[1].

Does a different value type count as a change?

Values are compared as text. The number 80 and the text 80 are the same, but 80 and 80.0 are different, as are true and True.

Which TOML features are supported?

Tables, arrays of tables, dotted keys, strings including multi-line ones, arrays and inline tables. Dates are kept as text. If a line cannot be read, an error names the problem.

Is Config File Key Diff free?

Yes. Config File Key Diff 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.