Skip to main content
Developer toolsLocal in browser — nothing is uploaded

.env dotenv <-> JSON config converter

Convert .env environment variable files into flat JSON objects (handling quotes and export prefixes cleanly) or serialize JSON config maps back into safe .env syntax.

Converted Output
{
  "PORT": "3000",
  "PUBLIC_SITE_URL": "https://giodev.site",
  "ENABLE_OFFLINE": "true"
}

Processing runs inside your browser without accounts or server uploads. Modular TypeScript domain logic tested locally.

Report a problem with this tool

Cross-platform deployment config

Clean quoting: Automatically quotes values containing spaces, hashes, or equals signs when converting JSON back to dotenv format.

Frequently asked questions

Are # comment lines ignored when converting to JSON?
Yes—blank lines and # comments are skipped cleanly so only active key=value pairs enter JSON.
Is export KEY=val syntax supported?
Yes—optional leading export prefixes are stripped automatically.