.env to JSON Converter

Parse a dotenv file into a clean JSON object — privately in your browser.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

.env to JSON converter

Paste a dotenv file and get back a clean JSON object. Each KEY=value line becomes a property; comment lines and blank lines are ignored, an optional export prefix is stripped, and quoted values are unquoted (double quotes process \n and \" escapes, single quotes stay literal).

Turn on type coercion to convert true, false and numeric values into native JSON types, or leave it off to keep everything as strings. The whole conversion runs in your browser — your env file never leaves your device.

Ad placeholder (rectangle)