Skip to content

Formateador y validador .env

Formatea, ordena y valida archivos .env: detecta claves duplicadas, nombres incorrectos y espacios sin comillas, y convierte a JSON o .env.example. Los secretos se quedan en tu dispositivo.

Sin subidas
# App
APP_NAME=ToolWand
app_env=production
DATABASE_URL=postgres://user:pass@localhost:5432/db
GREETING="hello world"
PORT=8080
API_KEY=sk-test-123
1BAD=oops
MULTI="line one\nline two"

9 variables · 2 errors · 5 warnings

  • ! Line 3: app_env: convention is UPPER_SNAKE_CASE
  • ! Line 3: app_env: spaces around = are not supported by every loader
  • ! Line 6: GREETING: value contains spaces but is not quoted
  • ! Line 7: PORT: duplicate (first on line 4); the last value wins
  • ! Line 8: API_KEY: "export" prefix removed
  • ✕ Line 9: 1BAD: invalid name (letters, digits, _ only; cannot start with a digit)
  • ✕ Line 10: Not a KEY=value line: "not a valid line"

Cómo usar Formateador y validador .env

  1. 1Abre Formateador y validador .env. Funciona en tu navegador, sin registro.
  2. 2Escribe o pega tus datos.
  3. 3Copia o descarga el resultado.

Preguntas

Are my secrets safe?

Yes. Everything runs in your browser — nothing is uploaded or stored.

What does .env.example do?

It keeps every key but empties the values, so you can commit it to show which variables the app needs.

Which value wins for duplicate keys?

Most loaders (like dotenv) keep the last one. Dedupe keeps the last value too.

Más herramientas