Code Transformer & LLM Sanitizer

transform.ignlab.net

100% Local Processing • Zero Data Transmitted • Safe for Proprietary Code
Mode
AI Safeguard {{ redactions.length }} redacted
Indent
No history yet — copy or download a result to save it here.
Source {{ activeMode.from }} detected: {{ detectedLabel }}
Drop file to load…
{{ inputGutter }}
{{ inputError }} {{ stats.in.lines }} lines · {{ stats.in.chars }} chars · {{ stats.in.bytes }}
Output {{ activeMode.to }}
{{ output }}{{ outputError ? '' : 'Transformed output appears here…' }}
⚠ {{ outputError || copyError }} {{ stats.out.lines }} lines · {{ stats.out.chars }} chars · {{ stats.out.bytes }}
🛡 Sanitizer redacted {{ redactions.length }} sensitive item{{ redactions.length===1?'':'s' }} before transforming
{{ r.name }} ×{{ r.count }}

JSON to .env Converter

Paste a JSON config object and get .env-style KEY=value lines back, ready for Docker, dotenv, or your deployment platform’s environment variable settings. Nested objects are flattened into prefixed keys (e.g. api.timeout becomes API_TIMEOUT).

How to use it

  1. Paste your source into the panel — or click Sample to see it work instantly.
  2. The JSON to .env mode is pre-selected for you.
  3. Copy or download the result — nothing is ever uploaded, it's all done locally in your browser.

Frequently asked questions

How are nested objects handled?

Nested keys are flattened and joined with underscores, upper-cased to match .env convention — {"api":{"key":"x"}} becomes API_KEY=x.

Are values with spaces or quotes escaped?

Yes, any value containing whitespace, a hash or a quote is automatically wrapped in double quotes.

What happens to arrays?

Arrays and remaining objects are serialized to a compact JSON string as the value.

Need a different conversion? Browse all conversions, sanitize secrets with AI Safeguard, or read the guides.