.env ↔ JSON Converter

Convert dotenv files to JSON and back - with secret masking

🔒 100 % im Browser🆓 Für immer kostenlos⚡ Kein Signup
Hinweis: Das Tool-Interface unten ist aktuell nur auf Englisch verfügbar. Wir übersetzen die UIs Stück für Stück. Dieses Tool auf Englisch ansehen →

So funktioniert's

  1. 1
    Paste .env or JSON

    Drop either format - the tool converts in the direction you pick.

  2. 2
    Toggle secret masking

    Turn on to replace values of KEY / TOKEN / PASSWORD variables with ***, so you can share the config safely.

  3. 3
    Copy the output

    One click sends the result to your clipboard.

Über .env ↔ JSON Converter

Free online .env to JSON converter. Paste a dotenv file to get clean JSON, or JSON to get a properly quoted .env. Optional secret masking hides values for KEY, TOKEN, SECRET, PASSWORD, and API_* variables. Runs entirely in your browser. .env ↔ JSON Converter auf 712 Tools läuft komplett in deinem Browser über native JavaScript APIs - kein Server sieht je deine Daten. Das heißt: sofortige Ergebnisse, volle Privatsphäre und keine Upload-Limits.

Ob für eine Debugging-Session, einen schnellen Sanity Check oder einen Produktions-Incident - dieses Tool ist kostenlos so oft nutzbar, wie du willst. Keine Wasserzeichen, kein Signup und keine Ads im Tool selbst.

Häufige Fragen

Which .env syntax is supported?

Standard dotenv: KEY=value, optional quotes (single or double), # comments, export prefix, and \n escapes inside double-quoted strings.

What triggers secret masking?

A regex against the key name: TOKEN, KEY, SECRET, PASSWORD, PASSWD, API, AUTH - case-insensitive. Never share masked output as a substitute for actual secret handling.

Does it handle multi-line values?

Multi-line values inside double-quoted strings using \n are supported. Raw multi-line values across lines aren't part of the dotenv spec.

Is my file uploaded?

No. Everything runs in your browser.

Weiterlesen