Skip to content
M2TOOLKIT

.env File Editor and Validator

Check and convert dotenv files safely in your browser.

  • Free
  • No sign-up
  • Runs in your browser

6 variables (1 duplicate) · checked in your browser, nothing is uploaded.

  • Line 8: api_url isn't UPPER_CASE (convention, not an error)
  • Line 9: API_KEY is defined again (first on line 6) — the last one usually wins
  • Line 10: DEBUG is empty

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us.

How to use the .env File Editor & Validator

  1. Paste your .env file.
  2. Fix any problems listed by line number.
  3. Convert it to the format you need — with secrets masked if you like.

What does this tool do?

dotenv files are easy to break: a duplicated key silently overrides the first, unquoted values with spaces get cut off, and comments can end up inside values. The validator flags these and the converter de-duplicates keys (the last value wins, like most loaders). .env.example output blanks anything that looks like a secret.

Your secrets never leave your browser.

Why use it?

  • Finds duplicates.
  • Six output formats.
  • Masks secrets.

Privacy

Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.

Last reviewed by the M2Toolkit team.

Other tools people use alongside the .env file editor & validator.