Convert ENV to JSONL
Turn ENV files into JSONL. Each entry of a top-level list becomes one line of compact JSON, and any other value becomes a single line, with values and key order kept.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop ENV files on the dialor turn it to pick what to do
Your ENV file as JSON Lines.Values and key order stay as they are, written as compact JSON.
What you get
One JSONL file. Each entry of a top-level list becomes one line of compact JSON. Any other value becomes a single line.
Values and key order are kept, so the line reads in the same order as your ENV file.
How lines are made
JSONL holds one JSON object per line, which is the format of logs and datasets. The conversion writes each line as compact JSON, so there are no extra spaces or line breaks inside a line.
The conversion has no options to set. You give it an ENV file and get one file back.
Going the other way
To turn JSONL back into KEY=value lines, use JSONL to ENV. To see the other routes from ENV, open every ENV conversion.
ENV and JSONL.What each format is.
The formats
Dotenv
KEY=value lines that hold environment variables for an app.
- Extensions
- .env
- MIME type
- text
/x -env - Kind
- Text and data
JSON Lines
JSON Lines, one JSON object per line, the format of logs and datasets.
- Extensions
- .jsonl .ndjson
- MIME type
- application
/jsonl - Kind
- Text and data
In your code.The same ENV to JSONL conversion through the API, for your app or your agent.
$ cv convert report.env report.jsonl$ cv convert report.env report.jsonlQuestions.What people ask about ENV to JSONL.
Yes. Values and key order are kept.
One file. It holds all the lines.
It becomes a single line of compact JSON. Only a top-level list is split into one line per entry.
No. The conversion has none.