Envify
Instantly convert between .env and JSON formats — bidirectional, fast, and simple.
Support Further Development


Features
.env → JSON — Convert environment variable files to JSON
JSON → .env — Convert JSON files to .env format
- In-place conversion — Replace content in the current editor
- Selection support — Select specific lines to convert only the selection
- New tab output — Open conversion result in a new untitled tab
- Right-click menu — Context menu support for quick access
- Keyboard shortcuts — Fast conversion with hotkeys
Usage
Command Palette
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) and search for:
| Command |
Description |
Envify: Convert .env to JSON |
Replace current content with JSON |
Envify: Convert JSON to .env |
Replace current content with .env |
Envify: Convert .env to JSON (New File) |
Open JSON result in a new tab |
Envify: Convert JSON to .env (New File) |
Open .env result in a new tab |
Keyboard Shortcuts
| Shortcut |
Action |
Ctrl+Shift+J / Cmd+Shift+J |
Convert .env → JSON |
Ctrl+Alt+E / Cmd+Alt+E |
Convert JSON → .env |
Right-click in the editor to see Envify commands in the context menu. Commands appear based on the file type you're editing.
Examples
.env → JSON
Before:
DATABASE_URL=postgres://localhost:5432/mydb
API_KEY=sk-1234567890
DEBUG=true
APP_NAME="My App"
After:
{
"DATABASE_URL": "postgres://localhost:5432/mydb",
"API_KEY": "sk-1234567890",
"DEBUG": "true",
"APP_NAME": "My App"
}
JSON → .env
Before:
{
"DATABASE_URL": "postgres://localhost:5432/mydb",
"API_KEY": "sk-1234567890",
"DEBUG": "true",
"APP_NAME": "My App"
}
After:
DATABASE_URL=postgres://localhost:5432/mydb
API_KEY=sk-1234567890
DEBUG=true
APP_NAME="My App"
- Handles quoted values (single and double quotes)
- Handles escape sequences (
\n, \t, \\, \")
- Skips comments and empty lines in .env files
- Nested JSON objects are stringified when converting to .env
Privacy & Security
Envify works 100% offline. Your .env secrets never leave your machine.
- No network requests — no data is sent to any server
- No telemetry or analytics
- No file system access — conversion happens entirely in the editor
- Zero runtime dependencies — no third-party code runs behind the scenes
- Source code is open and auditable on GitHub
License
MIT