Paste two versions of INI and .env code, or drop .ini, .cfg, .conf, .properties and .env files, to see every change highlighted. Use it to compare configuration between environments, such as two .env files or php.ini settings. Diffspot highlights INI and .env syntax, marks changed words inside each line and recognizes moved blocks. Press Try an example to see it on a real INI and .env change.
How to compare INI and .env files
- Paste or drop the original INI and .env code on the left.
- Paste or drop the changed version on the right. The diff updates as you type.
- Jump between changes with F7 and Shift+F7, or switch to Unified view to read it like a pull request.
- Copy or export a unified diff, a .patch file or an HTML report.
INI and .env comparison tips
- Comparing INI and .envSettings in a different order? Sort both sides with Tools → Sort lines, then compare.
- Cut the noiseBe careful sharing .env comparisons: a share link contains both files, secrets included.
- Your code stays privateThe comparison runs on your device in WebAssembly. Proprietary code is never uploaded or stored.
- Fast on large filesFiles with hundreds of thousands of lines compare in about a second.
Frequently asked questions
Is INI and .env detected automatically?
Yes. Diffspot recognizes INI and .env from the file name (.ini, .cfg, .conf, .properties and .env) or from the code itself. You can also choose it in the Syntax menu.
Is my code uploaded?
No. The page loads the diff engine once; after that your code stays in the browser tab. How Diffspot works explains how you can check this yourself.
Can I get a patch file?
Yes. Export → Download .patch creates a standard unified diff that git apply or patch can apply.