Home / Tools / Data and formats
.env to JSON Converter
Convert .env files to JSON and JSON back to .env.
Runs in your browserFree, no sign-upOpens .env, .json
Loading tool…
How to use it
- Choose the direction.
- Paste your .env or JSON, or open the file.
- Copy or download the result.
About this tool
Reads KEY=value lines, skips comments and blank lines, strips quotes and export prefixes, and outputs a JSON object. JSON to .env quotes values that contain spaces or special characters. Handy for moving config between Docker, CI secrets and cloud consoles.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Is my .env file uploaded?
No. It is converted in your browser, so secrets in it stay on your device.
Data and formats
All data and formatsMore tools like this
Data and formatsJSON Formatter & ValidatorFormat, validate, minify, stringify and parse JSON.Opens filesOpen →Data and formatsXML to JSON ConverterConvert XML to JSON and JSON back to XML.Opens filesOpen →Data and formatsCSV to JSON ConverterTurn CSV or TSV into JSON and JSON arrays into CSV.Opens filesOpen →Data and formatsYAML to JSON ConverterConvert YAML to JSON and JSON to YAML.Opens filesOpen →Data and formatsJSON to TypeScriptGenerate TypeScript interfaces from a JSON sample.Opens filesOpen →Data and formatsSQL FormatterFormat messy SQL into readable, indented queries.Opens filesOpen →Data and formatsHTML Beautifier & MinifierIndent minified HTML or minify it for production.Opens filesOpen →Data and formatsMarkdown Table GeneratorTurn CSV or spreadsheet cells into a Markdown table.Opens filesOpen →