Configuration checks

.env editor

Review assignments, switch to the table to edit a value, and preview every change before applying it.

.env editor

ENV source

Runs in your browser. Inputs stay in memory, without URLs, telemetry or local history.

Result

Validation options

Dialects differ in quotes, escapes and comments. Expressions are never evaluated.

Assignments: 5 · Unique keys: 5 · Duplicates: 0 · Empty: 1 · Warnings: 1

Warnings (1)
  • EMPTY, line 4: empty string.

A deployment can fail because a second assignment quietly overrides the value you just checked. This .env editor keeps every declaration visible, including empty entries, so you can inspect the actual file before handing it to a loader.

Configuration values remain strings: 001, false and an empty assignment have distinct meanings. Look at the decoded table value alongside the original quoting whenever a path, password or multiline certificate behaves unexpectedly.

Why use this .env editor?

See every declaration

The .env editor turns source assignments into a table without folding duplicate names into one row. Original line numbers and a warning for each repeated key let you choose exactly which occurrence to edit.

Configuration text beside a table that retains two matching key markers and highlights the duplicate rows.

Sort without losing context

Sort within each uninterrupted group of assignments. Standalone comments and blank lines stay at group boundaries; equal keys keep their relative order. The preview shows the proposed file and how many rows would move before you apply it.

Two configuration groups keep their separator bars while rows reorder within each group, with a preview and undo arrow.

Check the details that change interpretation

01

Choose the intended dialect

The initial example uses the documented dotenv subset. Select the shell assignment subset only for static assignments; unsupported expansion and commands become errors. Neither mode runs a shell.

02

Inspect the decoded value

Switch the result to the key-value table. Its cells show strings after the selected quoting rules, while the text result retains the original value syntax. An empty cell is present, not a missing variable.

03

Review a change before applying it

Editing, deletion, sorting and replacing the source open a preview. Apply commits the change and creates one undo point. In manual mode, Ctrl/Cmd + Enter updates the result; exports stay disabled while it is outdated.

Understand and repair configuration entries

Conservative formatting

The .env formatter removes spacing around the assignment operator while retaining export prefixes, quoted value text, inline comments and blank lines. Line endings become LF and a leading UTF-8 BOM is removed; it does not rewrite all values into a new quoting style.

Targeted diagnostics

The dotenv validator reports malformed names, missing equals signs, unclosed quotes and unexpected trailing text with source locations. Duplicate keys, empty strings, potential interpolation and unknown double-quote escapes appear as warnings rather than silent corrections.

One occurrence at a time

Use the environment variable editor to add a key, change a decoded string or remove a specific declaration. Repeated names remain separate rows. Edits are serialized as quoted literals, so inserted newlines or quote characters cannot become extra assignments.

Local file round trips

Read UTF-8 files such as .env.local and .env.production. The same limits apply to pasted text and files: 1 MiB and 10,000 assignments. The table displays 100 rows at a time, while copying and downloading use the complete checked output.

What validation does and does not mean

A defined dotenv subset
Names use ASCII letters, digits and underscores and cannot begin with a digit. Single quotes are literal. Double quotes decode backslash-n, backslash-r, escaped quotes and escaped backslashes; other escapes remain literal. Both quote styles can span lines. This is not a promise of compatibility with every dotenv loader.
No evaluation
Dollar references and command-like text in dotenv values stay as written and receive a risk warning. The shell subset rejects pending expansion, operators, concatenated quote segments and line continuations; quoted static values are accepted. Nothing is evaluated, fetched or substituted.
Duplicates are retained
The table keeps all assignments and reports each later duplicate with the preceding line. The last assignment is the effective value under this tool’s rules. Sorting never changes the relative order of equal names, and no automatic deduplication or key capitalization occurs.
Group boundaries matter
A standalone comment or blank line ends a sortable group. An inline comment travels with its assignment. Sorting is case-sensitive lexical ordering; it does not reorganize the whole file by prefix or infer which comment describes which variable.
A syntax check is not a deployment check
The result does not confirm that credentials work or that an application has every required variable. There is no secret generation, cloud history, remote URL import or JSON/YAML export here. Use the separate ENV comparison tool to check expected versus actual keys.

.env editor: common questions

What happens to duplicate keys?

Every occurrence stays in the source and table. The later row receives a warning with both line numbers; the last value is effective under the documented rules. You can delete or edit one occurrence explicitly, preview the result and undo the change.

What counts as an invalid key name?

Use ASCII letters, digits and underscores, starting with a letter or underscore. APP_PORT and _TOKEN are valid; 2PORT, APP-NAME and names containing spaces are rejected. Names are case-sensitive, so PORT and port are different keys.

Is it safe to paste environment variables?

Processing happens locally in the browser; this page does not send your configuration to a service or save it in local history. Source, table, preview and exported files still contain visible values. Use synthetic examples when screen sharing and handle downloaded secrets as carefully as the original file.

What errors does the .env validator detect?

Blocking errors include a missing equals sign, invalid name, unclosed quote, unexpected text after a quoted value, NUL characters and unsupported syntax. A .env editor warning is different: an empty or duplicate entry remains exportable after you review it.

What .env format is supported?

Choose the documented dotenv subset or the restricted shell assignment subset. Both support optional export prefixes and quoted multiline strings. They differ in spacing, hash-comment and escape rules; neither expands variables or executes commands. Invalid UTF-8 files and inputs above the stated limits are rejected.

Need help with a value or rule?

Review your next configuration change

Open the .env editor, inspect the warnings and compare the proposed source with your original file before applying the change.