opyeb envmask

No upload. No server.

Hide the secrets.
Keep the diff exact.

Paste a config file and tokens, passwords and connection strings are found and masked. Compare two files with the values masked, then copy a .env.example, a GitHub issue snippet or a Slack message that is safe to share.

Paste a config to see the masked result here.

Input config

Paste .env, JSON, YAML or TOML. The format is detected automatically.

Masked result

Paste a config to see the masked result here.

Masking rules

Detect JWT, AWS, GitHub, Stripe, PEM and database URL shapes regardless of the key name.

Also catch 20+ character values that mix letters and digits. More false positives.

Do not mask names that are public by design, such as NEXT_PUBLIC_, VITE_ and PUBLIC_KEY.

Detection list

    Export

    Builds a snippet from the masked result above.

    Example configs

    Every value is a dummy containing EXAMPLE_ONLY. Press one to see the behaviour.

    How it works

    1. 01Paste

      Paste .env, JSON, YAML or TOML. The format is detected from the text, and you can override it from the list.

    2. 02Tune the masking

      A detection list appears on the left. Check why each value was masked, then adjust the mode, whitelist and blacklist.

    3. 03Compare and export

      The compare tab shows only added, removed, changed and retyped keys. Export a .env.example, GitHub Markdown or Slack snippet.

    What is on one screen

    Secret detection

    Key names are split into tokens and matched against KEY, TOKEN, PASSWORD, SECRET, AUTH, DSN, WEBHOOK and similar words. Values are also checked for JWT, AWS, GitHub, Slack, Stripe, OpenAI, PEM and database URL shapes.

    Four masking modes

    Partial (sk_l...9a2f), full (***REDACTED***), SHA-256 fingerprint (sha256:8 hex) or length preserving (•••). Partial keeps a suffix so you can still see a value change.

    Public key exceptions

    Names that are public by design, such as NEXT_PUBLIC_, VITE_ and PUBLIC_KEY, are skipped by default. Add your own whitelist and blacklist for company rules.

    Structural diff

    Both files are flattened to the same key paths, so only added, removed, changed and retyped keys remain. Values are masked before comparison, so prod and staging can sit side by side.

    Safe snippets

    Generate a keys-only .env.example, a GitHub PR or issue table with a code block, a Slack mrkdwn message, or masked JSON and YAML files.

    Entirely in the browser

    No upload step and no account. JavaScript does the work in memory; the only thing stored is your theme choice.

    Why the values never reach a server

    Config files contain the passwords and tokens themselves. This tool was built so the input has nowhere to go.

    No upload

    What you paste stays in JavaScript memory. Open the network tab and confirm there are zero outbound requests.

    No storage

    Input and results are not saved. Reloading clears them; the theme choice is the only thing kept.

    No API

    There is no masking endpoint and no server function. The whole site is static HTML and JavaScript.

    Questions

    Is this really processed only in the browser?

    Yes. Parsing, detection, masking, comparison and export all run in this page's JavaScript. No request carries your input, and the network tab proves it.

    Can I trust the automatic detection completely?

    No. Detection is a helper. It misses token formats and meaningless key names it has not seen, and it can mask a public value. Review the detection list before sharing, and put important keys on the blacklist yourself.

    Is partial masking safe?

    It keeps the last four characters, which is far safer than the full value but can expose short values. For issues and chat messages, use full or hash masking.

    When would I use hash mode?

    When you only need to know whether two values are the same. It cannot be reversed, but short values can be guessed from a dictionary. Do not use it for passwords.

    What happens to YAML and TOML comments?

    The masked result is re-serialised, so comments, blank lines and some key order are normalised. .env is rewritten line by line, so its comments and order stay.

    Guides and reference

    Masking rules, .env syntax, leak response and per-environment comparison, in your language. Each article starts with a one-line answer.

    All guides

    Paste a config and see for yourself

    Load an example to see exactly which values are masked and why.

    Start with an example