How It Works Under the Hood
Paste your .env content, choose the output format and copy it. Comments, export prefixes, quotes and inline comments are handled.
Step-by-Step Instructions
Paste the .env file.
Choose the output format.
Copy the result.
Key Features & Performance
- JSON
- Compose map and list
- Kubernetes ConfigMap
- docker run -e
- Typed JSON option
Methodology, Formulas & Technical Standards
Each KEY=value line is parsed, quotes and inline comments are removed, and the pairs are written in the target format.
Worked Examples & Edge Cases
DB_PORT=5432
{ "DB_PORT": "5432" } Compose and k8s forms too
Limitations, Scope & Accuracy Notes
- • Variable expansion such as ${OTHER} is not performed.
- • Multi-line quoted values are limited to one line with \n escapes.
- • Do not paste production secrets into tools you do not trust.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. .ENV to JSON / Docker Compose Env Converter runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
Are secrets sent anywhere?
No. The conversion runs in your browser. Still, avoid pasting real production secrets anywhere unnecessary.
Is anything uploaded?
No. Everything runs in your browser and your data stays on your device.
Explore Related Micro-Tools
.env Diff, Formatter & Secret Sanitizer
Compare environment files side-by-side, sort keys alphabetically, and scrub secrets into .env.example
Git Worktree & Complex Command Builder
Build git worktree, rebase, reset and other commands safely
JSON Formatter, Validator & Diff
Format, validate, compare diffs & auto-repair malformed JSON locally in your browser