opyeb sqlmask

No upload, no server

Keep the dump,
drop the personal data

A SQL dump, CSV export or JSONL log copied for testing still carries real customer data. Paste it here and sqlmask finds emails, phones, cards, resident numbers and IPs — and keeps the same value mapped to the same pseudonym so joins and fixtures still work.

Paste data and the result appears here.

Input data

Paste SQL, CSV or JSONL. The format is detected automatically.

Transformed output

Paste data and the transformed output appears here.

Transform rules

Keeps u***@ex***.invalid or 010-****-5678. Good for screen sharing and logs.

Same salt + same value = same pseudonym. Note it down if you need to join across runs. It is never sent anywhere.

Names such as email, phone, rrn, card_no, ip_addr and full_name are treated as that type even when the value looks different.

Only 13–19 digit numbers that pass Luhn are treated as cards. Turn off to match on shape alone.

Only six-digit–seven-digit patterns with a valid checksum are transformed. Failures are listed in the stats.

Off by default. Turning it on also rewrites string and number literals in WHERE and JOIN, which can make the statement target different rows.

The first row becomes column names and data starts on row two. Turn off to treat every row as data.

Form: name = regex. e.g. emp_no = ^E\d{6}$ · /사번|EMP-\d+/

Detection stats

Nothing detected yet.

TypeHits RowsDistinct

    Original ↔ transformed

    Changed values appear here by row and column.

    Sample data

    Every value is a placeholder: example.invalid, 0000 numbers and test names. Press one to try it.

    How it works

    1. 01Paste

      Drop in a SQL dump, CSV or JSONL. The format is detected automatically and can be overridden. Open a local file and it is read in the page, never uploaded.

    2. 02Tune the rules

      Check counts and affected rows per type, then choose the mode, salt, column-name rules and custom regexes. Luhn and resident-number checksum checks can be toggled.

    3. 03Export

      Copy or download the transformed SQL, CSV or JSONL, and keep the per-type stats as a CSV report. Originals stay hidden on screen by default.

    What is on one screen

    Format detection

    Separates INSERT, UPDATE, VALUES and COPY statements from RFC 4180 CSV and line-delimited JSONL. SQL is tokenised so only actual literals change, never comments or identifiers.

    Pattern detection

    Emails, Korean phones (010, 02, 070 …) and international numbers, card numbers (Luhn), Korean resident and foreigner numbers (checksum), IPv4 and IPv6. A column named email, phone, rrn or ip_addr is treated as that type even when the value looks wrong.

    Four transform modes

    Partial masking (u***@ex***.invalid, 010-****-5678), HMAC-SHA-256 deterministic pseudonyms, full redaction (REDACTED) and format-preserving dummies (010-0000-0001).

    Deterministic pseudonyms

    The same salt and the same input always produce the same output. Emails stay email-shaped and phones stay phone-shaped, so join keys and test fixtures keep working.

    Stats and comparison

    Counts, affected rows and distinct values per type, plus a row · column · before · after table. Before values are masked until you choose to reveal them.

    Entirely in the browser

    No external library, CDN, font or analytics script. The parsers, the transform engine and SHA-256/HMAC are all implemented in this page.

    Why the dump never reaches a server

    A copied dump carries real emails and phone numbers. This tool is built so that the input never leaves the tab.

    No upload

    Pasted text and opened files stay in JavaScript memory. Open the network tab in developer tools and confirm that no request is made.

    No storage

    Input and output are not saved. A refresh clears them; the only thing kept is your theme choice.

    No API

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

    Frequently asked questions

    Does it really run only in my browser?

    Yes. Parsing, detection, transformation, stats and export all run in this page's JavaScript. No request carries your input anywhere; check the network tab to confirm.

    Do two rows with the same email get the same pseudonym?

    In deterministic mode, yes. HMAC-SHA-256 is computed over the salt and the type plus value, so with the same salt an identical input always gives an identical output. A different salt changes every pseudonym, so write the salt down if you need to join across runs.

    Which mode should I use?

    Partial masking for screen sharing and logs, deterministic pseudonyms for multi-table test data, full redaction for data you publish, and format-preserving dummies for fixtures where shape matters.

    Are quoted commas and newlines in CSV safe?

    Yes. Fields quoted under RFC 4180 are read as one value and re-quoted after transformation, so commas, quotes and line breaks survive.

    How are cards and resident numbers validated?

    Cards use the Luhn check; Korean resident and foreigner numbers use the 13-digit checksum. Values that fail are listed separately in the stats and are still masked when a column-name rule applies.

    Can I run it against production?

    No. Use it on copies for testing and analysis. Production data belongs in a controlled environment with a separate de-identification step, and the result should be reviewed.

    Frequently asked questions

    Guides and reference

    Patterns, SQL dump handling, deterministic pseudonyms and the CSV/JSONL traps, in your language. Every article opens with the one-line answer.

    All guides

    Paste your dump and check

    Load a sample to see exactly which values change and why.

    Start with a sample