What is .env File Validator?
.env File Validator checks a .env file for mistakes before an app or Docker reads it. It checks common syntax rules, not the rules of one particular loader, and it cannot know whether a value such as a password is correct. Values are never displayed, but they are read in your browser only.
How It Works
- Enter the text of a .env file, and optionally your .env.example in the input fields on this page.
- Press the button to run .env File Validator.
- Read a list of errors, warnings and notes with line numbers, without showing any values in the result area, and copy or download it.
Common Uses
- Finding why an app does not pick up a variable.
- Checking a .env before using it with Docker Compose or a deploy.
- Making sure every variable in .env.example is set.
Good to Know
Quote any value that contains spaces or a # sign. Different loaders treat unquoted values differently, and quotes make them all agree.
How it works
Paste your .env file or load it from your device and press Check. Each problem is listed with its line number. Add your .env.example in the second box to see which variables are missing or extra.
Only the variable names are ever shown. The values stay hidden, so you can check a real file without exposing keys on screen.
Worked example
A valid file with several variables was checked and the variable count matched the count from the python-dotenv library. A second file with a duplicate key, a space around the equals sign, an unclosed quote and a long secret-looking value was reported line by line, and the secret itself was not printed. Comparing a file that had A and EXTRA against an example that had A and MISSING reported MISSING as missing and EXTRA as not in the example.
Limits
There is no single official .env format, so the rules follow the common dotenv behaviour. Variable expansion such as ${OTHER} is not evaluated. Placeholders like changeme and empty values are not flagged as secrets. Files over 1 MB are not accepted.
Frequently Asked Questions
Is my .env uploaded?
No. It is checked in your browser and nothing is sent anywhere.
Why does it say my file mixes line endings?
Some lines end in Windows style and some in Unix style. Most tools cope, but it often means the file was edited on two systems.
Does it check that the values work?
No. It checks the syntax and structure only.
What does .env File Validator do?
.env File Validator checks a .env file for mistakes before an app or Docker reads it. It checks common syntax rules, not the rules of one particular loader, and it cannot know whether a value such as a password is correct. Values are never displayed, but they are read in your browser only.
What do I need to enter in .env File Validator?
The text of a .env file, and optionally your .env.example.
Is my data private in .env File Validator?
Your .env stays in your browser and is not uploaded.
Is MyToolDock .env File Validator free to use?
Yes, MyToolDock .env File Validator is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.