.env Validator: Validate .env syntax and flag likely leaked secrets and API keys before you commit them
.env Validator is the tool for one job: validate .env syntax and flag likely leaked secrets and API keys before you commit them. This guide covers the inputs to gather, one pass you can check, and the point where the result stops being enough.
What to bring to the .env Validator
Paste a real snippet, not a description of the snippet, unless the tool asks you to describe one.
.env Validator runs in your browser. The file or the figures stay on your device.
A worked pass with the .env Validator
Validate .env syntax and flag likely leaked secrets and API keys before you commit them. Feed it a small valid sample and a sample you know is broken. The valid one should succeed and the broken one should point at the problem.
Do that pass with a case you already understand. Then replace it with the real case. Changing one input at a time is how you see which field actually moved the result.
How to check the result
Diff the output against the input for a formatter. For a generator, run the result in the real tool that will consume it.
Where the .env Validator stops
.env Validator does not see your repository, your server, or the version of the library on your machine.
If your decision depends on a rule this page does not mention, a lender, a clinic, a teacher, a client, or the vendor of the file, use their rule. Keep this result as the draft you compare against that rule.
Questions
What does the .env Validator do?
It is there to validate .env syntax and flag likely leaked secrets and API keys before you commit them. The form on the .env Validator page is the place you do that.
How do I know the .env Validator result is usable?
Diff the output against the input for a formatter. For a generator, run the result in the real tool that will consume it.
What should I not trust the .env Validator to decide?
.env Validator does not see your repository, your server, or the version of the library on your machine.
When the next step is a different tool
- curl Command Builder — Build a curl command from a form and export the equivalent Python requests and JS fetch code.
- IP Subnet Calculator — Calculate network, broadcast, host range and mask from a CIDR block, with a visual bit breakdown.
- Nginx Config Generator — Generate Nginx configs for reverse proxy, SSL termination, static sites and load balancing.