All Tools View Categories About Contact Privacy

Env Variable Search & Filter

Find keys or values in a .env by substring, glob, or regex, with comment context.

Runs entirely in your browser — nothing is uploaded.

About Env Variable Search & Filter

When a .env grows past 50 lines, scrolling is slow. The Env Variable Search & Filter finds exactly what you need: type a substring, glob, or regex and see only matching keys with their values and comments.

Three match modes cover every use case: simple substring for quick checks, glob wildcards for prefix/suffix patterns, and full regex for complex queries. A context toggle includes the comment line above each hit so documentation travels with the result.

Features

  • Three modes: substring, glob (* ?), regex.
  • Target selector: keys, values, or both.
  • Context lines: keeps the comment above each match.
  • Case toggle: insensitive by default.
  • Line numbers: original positions shown.
  • Copy or download: filtered subset.
  • Private: fully client-side.

How to Use

  1. Paste your .env or load the sample.
  2. Enter a pattern and pick mode/target.
  3. Click Search. Matching lines appear with context.
  4. Copy the results for a focused review.

Examples

Example 1 — Find all database keys. Pattern: DB_* in glob mode finds DB_HOST, DB_PORT, DB_NAME instantly.

Example 2 — Hunt a typo. Regex: ^[a-z] catches any lowercase-starting key.

Example 3 — Value check. Search values for hunter2 to find hardcoded passwords.

Example 4 — Prefix audit. Glob: NEXT_PUBLIC_* shows every client-exposed variable.

Benefits

  • Precise: three match engines.
  • Context-aware: comments travel with hits.
  • Fast: instant on files of any size.
  • Private: nothing uploaded.

Frequently Asked Questions

What patterns are supported?
Substring (default), glob wildcards (*, ?), and full JavaScript regex. Use the mode selector to switch.
Can I search values too?
Yes. A toggle lets you match against keys only, values only, or both.
What does “with context” mean?
The output includes the matching line plus one comment line before it (if any), so you see the documentation.
Is anything uploaded?
No. Searching is a client-side operation on the pasted file.