.env ↔ JSON Converter

Convert a .env file to JSON or JSON back to .env. Handles comments and quoted values.

Frequently asked questions

What does this convert?

It turns a .env file (KEY=value lines) into a JSON object, and JSON back into .env format — handy for moving config between tools and config formats.

Does it handle comments and quotes?

Yes. Lines starting with # and blank lines are skipped, and surrounding single or double quotes around values are stripped on import and re-added when needed on export.

Is it safe for secrets?

Everything runs in your browser and nothing is uploaded — but still avoid pasting production secrets into any web tool out of habit.