Need AI Training/Help?CloudYeti.io/meet
MarkdownMe

ENV to JSON Converter

Paste your .env file and pick an output format: JSON (for config files or SDK consumption), YAML (for cloud configs), docker-compose 'environment:' block, or a Kubernetes ConfigMap manifest. Handles quoted values (single and double), inline comments, and the 'export KEY=value' shell-prefix syntax. Runs entirely in your browser — your env variables never leave your machine.

165 / 100,000
Parsed 5 variables.

Frequently Asked Questions

How are quoted values handled?
Single-quoted values are kept literal. Double-quoted values get common escape sequences processed (\n → newline, \t → tab, \" → "). Unquoted values can have a trailing '# comment' stripped from the end. This matches dotenv library behavior.
Will it handle variable interpolation like $OTHER_VAR?
No. This tool converts keys and values literally — it doesn't expand variables. If your .env uses interpolation, expand those in your shell (envsubst) first, then paste the expanded output here.
Is it safe to paste production .env contents?
Technically yes — the conversion runs entirely in your browser with no network calls. But .env files contain secrets. Be cautious about closing/refreshing the tab with real credentials, and never screenshot the output.
Why does the Kubernetes ConfigMap output use a ConfigMap and not a Secret?
ConfigMaps are for non-sensitive configuration. For API keys, passwords, and tokens, use a Kubernetes Secret (base64-encode the values). This tool targets ConfigMap because most .env files are a mix of config and secrets — split them before applying.

About ENV to JSON Converter

Convert .env files to JSON, YAML, docker-compose environment blocks, or Kubernetes ConfigMap. Handles quoted values, comments, and export syntax. This tool runs entirely in your browser, so your content is not sent to a server. MarkdownMe provides free, fast, and reliable Markdown tools for developers, writers, and anyone who works with Markdown.