Code and config

.env viewer

To open a .env file, drop it in the box below. It opens straight away, even with no extension or the wrong one. Your browser opens it on your device: nothing is uploaded.

Opened on this device, never uploadedDrop or paste another file at any time

What you see

.env in the viewer
ValuesHidden until Show values; the switch is never remembered
RulesAs dotenv reads them: export, quotes, multi-line values, # comments
Set twiceNamed under Details; the last value counts
ConvertTo JSON or YAML
Extensions.env
UploadNone: opened on your device

What is a .env file?

In short

A .env file holds environment variables as KEY=value lines: database addresses, API keys and other settings an app reads when it starts.

The file with line numbers and colours, its values hidden as dots until you switch Show values on; keys and comments stay visible. Tree lists every variable. Details counts them and names any key set twice.

How to open a .env file

  1. Add your .env. Drop the file in the box, choose it or paste it.
  2. Look at it. The file with line numbers and colours, its values hidden as dots until you switch Show values on; keys and comments stay visible. Tree lists every variable. Details counts them and names any key set twice.
  3. Take it further. Open in hands it, in a new tab, to File converter.

Questions

It is read in your browser and never uploaded. Its values are dots in View until you switch Show values on; Bytes shows the file as it is.

It is named .env on purpose: the dot hides it on Mac and Linux. The viewer knows it by that name, and by names like .env.local or prod.env.

No. The viewer runs in your browser and opens the file on your device. Nothing is sent anywhere.

Related