Skip to main content
>_devtools

.env File Formatter

Sort keys, normalize quotes, align values and remove duplicates in a .env file while keeping comments.

Sorts keys, normalizes quotes, handles duplicate definitions, and keeps comments in a .env file. Choose formatting options and review the result before downloading it.

Example

Input
B=2
A=1

Output (A to Z)
A=1
B=2

Limits and behavior

  • Input is limited to 2 MB.
  • Formatting does not evaluate variable interpolation.