Env Validator
Check a .env file for duplicate keys, unclosed quotes, unquoted spaces and placeholder secrets before they break a deploy. Reports the line number of each problem.
.env0 ln / 0 ch
readykeys are not stored anywhere
local / nothing uploadedAbout this tool
Check a dotenv file for the problems that surface as runtime bugs: duplicate keys, unclosed quotes, unquoted spaces, empty values and placeholder secrets. Problems are listed with their line numbers.
How to use it
- Paste the contents of your .env file.
- Read the findings, ordered by line.
- Fix errors first, then the warnings.
- Re-run after each fix.
Examples
A broken quote
API_KEY="sk-live-abc DEBUG=true
Reports an unclosed quote on line 1.
Limits and notes
- Only KEY=value lines are checked; export prefixes are not parsed.
- This is a lint, not a loader, and it does not evaluate values.
Frequently asked questions
- Why is a duplicate key a problem?
- Most loaders keep the last value, so the first one is silently ignored and the deployed value is not the one you expect.
- What is an inline comment?
- A space followed by a hash. Some parsers treat it as a comment, others keep it as part of the value.
- Can I check a .env.example file?
- Yes, and it is a good habit: it catches placeholders that accidentally ship.
- Are my secrets sent anywhere?
- No. Validation happens in the page and nothing is uploaded.
Want the details? Read the full guide: The .env Mistake That Breaks the Deploy.
Related Tools
Base64 Encoder/DecoderEncode and decode Base64 strings safely. Supports full UTF-8 characters, emojis, and binary data. Ideal for debugging data URLs or API authentication headers.
URL Encoder/DecoderPercent-encode and decode URLs. Safely escape query parameters, path segments, or full URLs to ensure they are valid and won't break during browser routing or API requests.
JWT DecoderDecode JSON Web Tokens to inspect the header and payload. Debug authentication flows, check expiration times, and view user roles without verifying the signature.
JWT SignerCreate a signed JSON Web Token with HMAC SHA-256, SHA-384 or SHA-512. Encode the header and payload and sign it from a secret, entirely in your browser.
JSON ValidatorValidate JSON syntax with detailed error messages. Catch trailing commas, missing brackets, and syntax errors instantly before sending payloads to your API.
JSON FormatterBeautify, validate, minify, and view JSON. Format messy API responses into readable code or compress it to save bandwidth, running safely in your browser.
JSON MinifierCompress JSON to a single line. Remove all unnecessary whitespace and line breaks to reduce payload size for production APIs without altering the underlying data.
JSON ViewerView JSON in an interactive, collapsible tree structure. Easily navigate massive API responses, expand specific nodes, and inspect deeply nested objects or arrays.