Toolvito

Calculates on this device. File exports run online.

Linux Configuration Helper

Paste a .env file to see every key and value as dotenv, Docker Compose and python-dotenv read it, what a shell would choke on, and the same settings as JSON, shell exports, a systemd file, a docker --env-file or a Kubernetes ConfigMap. Quote arguments safely for bash, PowerShell or Windows, or see how a shell splits a command line. Everything stays in your browser.

Enter your values

Read a .env file as dotenv and Docker read it, see what is wrong, and convert it.

Your values

KEY=value lines. The file stays in your browser; values that look secret are hidden in the table.

More options

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose the button below them.

Report on .env against .env.example

Report on .env against .env.example (values as fingerprints)

After Compare .env with .env.example above, the two files go to the server with every value replaced by a fingerprint. You get a side-by-side report (an HTML file), a .patch file and the changed keys as CSV.

More options

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to check a .env file

  1. Choose Check and convert a .env file and paste the file, or open it.
  2. Press Check. The table lists each key with its last value; values that look secret (passwords, tokens, keys) are hidden unless you ask.
  3. Read What to fix: keys set twice, values with spaces but no quotes, spaces round =, unclosed quotes and ${NAME} that is not set.
  4. Choose how to write it: JSON, shell export lines, a systemd EnvironmentFile, a docker --env-file or a Kubernetes ConfigMap.

How .env files are read

  • KEY=value, one a line; lines starting with # are comments; a line may start with export.
  • Unquoted values end at " #" and lose spaces at both ends. Single quotes keep the text as it is. Double quotes read \n, \t and \" and may run over several lines.
  • ${NAME} and $NAME in unquoted and double-quoted values are filled from keys above, as dotenv-expand and Docker Compose do. A key set twice keeps its last value.
  • A shell that sources the file is stricter: no spaces round =, no spaces in unquoted values, names of letters, digits and _ only.

Quoting arguments

  • sh, bash, zsh: single quotes keep everything as typed; a single quote itself becomes '"'"'.
  • bash $'…': shows control characters such as a line break as \n.
  • PowerShell: single quotes, with a single quote written twice.
  • Windows programs: double quotes, with backslashes doubled only before a quote, as CommandLineToArgvW reads them; cmd.exe also needs ^ before ( ) % ! ^ " < > & |.

Limits you should know

  • Readers differ in small ways (for example dotenv for Node also takes KEY: value); the page warns where they differ.
  • Splitting a command line follows the POSIX shell rules for words; nothing is run, and variables, ~ and * are not expanded.
  • The converted files hold the real values: keep them out of version control.

Privacy

The browser replaces each value with the first 12 hexadecimal digits of its SHA-256 digest. The comparison box sends the resulting fingerprints to Toolvito to identify differences. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

Related tools