Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JSON to ENV ConverterNew to Visual Studio Code? Get it now.
JSON to ENV Converter

JSON to ENV Converter

hail-kang

|
5 installs
| (0) | Free
Convert JSON files to ENV format
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSON to ENV Converter

Easily convert JSON files to ENV format with a single right-click in VS Code.

Demo

Features

  • One-click Conversion: Right-click on any JSON file to generate an ENV file
  • Auto Key Transformation: Automatically converts camelCase, kebab-case to UPPER_SNAKE_CASE
  • Comment Handling: Ignores comments in JSON files
  • Error Handling: Detects and notifies about nested objects, non-string values, and invalid JSON

Usage

  1. Right-click on a .json file in the VS Code Explorer
  2. Select "JSON to ENV" from the context menu
  3. A .env file will be created in the same directory

Example

input.json

{
  "apiKey": "your-api-key",
  "databaseUrl": "localhost:5432",
  "debugMode": "true"
}

output.env

API_KEY=your-api-key
DATABASE_URL=localhost:5432
DEBUG_MODE=true

Requirements

  • VS Code 1.74.0 or higher

Limitations

  • Only supports flat JSON objects (no nested objects)
  • Only supports string values
  • Comments in JSON are ignored during conversion

Release Notes

1.0.0

  • Initial release
  • JSON to ENV conversion
  • Right-click context menu support

License

MIT


Enjoy!

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