.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.
{
"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 toolCross-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.
Related tools
Browse all toolsSpreadsheets & data
JSON flatten & unflatten
Flatten nested JSON objects and arrays into dot-separated keys—or rebuild nested structures cleanly from flat maps.
Spreadsheets & data
YAML formatter & YAML <-> JSON
Parse, validate, pretty-format YAML manifests, or convert cleanly between YAML and JSON directly in your browser.
Security & generators
Pre-commit secret & PII scanner
Scan code snippets, .env dumps, or logs offline for exposed cloud keys, JWTs, private key headers, and email addresses.