Code · Made a little simpler

ENV Key Type Validator

Check boolean, finite decimal, absolute HTTP URL, JSON and enum values against key-name clues or a JSON schema block. Review issues by line or key with a limited boolean case fix.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Paste .env assignments or a JSON object with env or declared and an optional schema. The report includes key names and findings.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

ENV Key Type Validator: how to use it

  1. Paste or open dotenv text, or supply a JSON object with env or declared. Add a schema object to define rules explicitly.
  2. Select Validate key types and review the failures, checked entries and keys without applicable rules.
  3. Apply a proposed boolean case fix if accepted by your application. Review any remaining findings and export the report when needed.

Limits and notes

Use up to 262,144 UTF-16 code units per input and up to 10,000 lines of dotenv text. Processing takes place in your browser. JSON values can be strings, booleans or finite safe numbers. The check does not read endpoints or expand variables. The optional boolean fix changes case in a local .env draft.

How your privacy works →

ENV Key Type Validator: common questions

Does a quoted true become a boolean in .env?

Node.js reads environment values as strings. The boolean rule checks whether the parsed string spells true or false.

How does a schema change the checks?

When you supply a schema object, keys under it use those rule definitions and other keys are unchecked. A rule with required set to false may be absent.

Do the exported type findings include secrets?

The report contains names, locations and rule findings. Source text and assigned values stay in the source editor.

Guides