Convert JSON to a .env file

Paste a flat JSON object (key/value) to get an equivalent .env file in KEY=VALUE format. Nested objects or arrays can't be represented directly in a .env file: they are flagged rather than wrongly converted.

Example:

How it works

Do you have a configuration in JSON format (a tool export, a configuration API response) that you need to turn into a .env file for a Node.js, Python or Docker project? Paste the JSON and click "Convert to .env": each key/value pair becomes a KEY=value line, with values containing spaces or special characters automatically wrapped in quotes.

Why are my keys renamed in uppercase?

By convention, environment variables are written in uppercase with underscores (SNAKE_CASE). JSON keys that contain characters not allowed in an environment variable name (spaces, hyphens, accents…) are automatically cleaned up and uppercased; a warning lists every rename that was made.

How do I handle a nested JSON configuration?

The .env format does not natively support nested objects or arrays. Rather than produce an incorrect result, the tool flags these keys in a warning and excludes them from the generated file. Flatten your JSON first (for example by prefixing inner keys, so database.host becomes DATABASE_HOST) before converting if you need those values in the final .env file.

100% local processing: conversion runs entirely in your browser — your configuration, which may be sensitive, never leaves your device.