.env ↔ JSON Converter

Convert dotenv files to JSON and back - with secret masking

🔒 100% di browser🆓 Gratis selamanya⚡ Tanpa signup
Catatan: Interface tool di bawah saat ini baru tersedia dalam bahasa Inggris. Kami sedang menerjemahkan UI satu per satu. Lihat tool ini dalam bahasa Inggris →

Cara pakai

  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.

Tentang .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 di 712 Tools jalan sepenuhnya di browser kamu pakai JavaScript API native - tidak ada server yang pernah melihat data kamu. Artinya hasil instan, privasi penuh, dan tanpa batas upload.

Buat sesi debug, quick sanity check, atau incident produksi - tool ini gratis dipakai sebanyak yang kamu butuh. Tanpa watermark, tanpa signup, dan tanpa ads di dalam tool.

Pertanyaan yang sering ditanyakan

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.

Baca lebih lanjut