Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>EnvifyNew to Visual Studio Code? Get it now.
Envify

Envify

pawaretdev

|
1 install
| (0) | Free
Instantly convert between .env and JSON formats — bidirectional, fast, and simple.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Envify

Instantly convert between .env and JSON formats — bidirectional, fast, and simple.

Support Further Development

GitHub Sponsors
Buy Me a Coffee

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 Menu

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"

Supported Formats

  • 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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft