Skip to main content

ENV File Parser

Parse .env files — extract key/value pairs, detect syntax errors, and export as JSON.

LineKeyValueComment
2DB_HOSTlocalhost
3DB_PORT5432
4DB_NAMEmy_app
7APP_SECRETs3cr3t_k3y_here
8DEBUGfalse
{
  "DB_HOST": "localhost",
  "DB_PORT": "5432",
  "DB_NAME": "my_app",
  "APP_SECRET": "s3cr3t_k3y_here",
  "DEBUG": "false"
}