Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Data Formats

CSV Formula Injection Guard

Inspect CSV records for cells that begin with spreadsheet formula triggers and prefix them with a protective apostrophe. Quoted fields, escaped quotes, and multiline fields are parsed before sanitization. Processing stays in your browser.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What the formula injection guard does

The tool reads a CSV document cell by cell and looks for the characters a spreadsheet treats as the start of a formula: equals, plus, minus and at. Any cell whose first meaningful character is one of those is flagged. In the default sanitize action a straight apostrophe is prepended inside the field, which makes the spreadsheet render the text literally instead of evaluating it, and the file is returned as sanitized.csv with CRLF line endings ready to download.

Why the leading characters matter

Spreadsheets do not distinguish data from code. When a CSV is opened, a cell starting with = is treated as a formula, and functions such as HYPERLINK, IMPORTXML or web-request helpers can silently read local data or fetch a URL when the recipient merely opens the file. A plus, minus or at sign can trigger the same evaluation path in some applications. Prefixing the apostrophe keeps the original text visible while denying the spreadsheet the chance to run it.

Auditing without changing anything

Report mode leaves the data untouched and returns a table of the risky cells with their row number, column number and original value, plus a count of how many were found. That is the safe way to check a third-party export — a scraped dataset, a user-submitted form dump, a partner feed — before deciding whether to clean it, because you keep the evidence rather than altering the copy. When nothing is flagged the note says so explicitly.

Parsing rules and privacy

Cells are parsed with real CSV rules rather than a naive split, so quoted delimiters, doubled quotes, embedded newlines and CRLF or LF records all survive intact; unterminated quotes and stray characters after a closing quote are rejected instead of guessed. The trim option decides whether leading whitespace and control characters are skipped before detection, matching how some importers behave. Parsing, flagging and re-encoding all happen in your browser, so the file you paste never leaves it.

Questions

What counts as a risky formula?

Cells whose first meaningful character is =, +, - or @ are flagged. Depending on the spreadsheet and import path, leading whitespace or control characters may be ignored, so that detection can be enabled or disabled.

Does adding an apostrophe guarantee safety in every spreadsheet?

No universal mitigation works identically across every spreadsheet and import workflow. The apostrophe is a common mitigation for CSV opened in spreadsheet applications, but review the target application and keep the original data when handling sensitive workflows.

Are quoted commas and multiline fields supported?

Yes. The parser handles quoted delimiters, doubled quotes, CRLF/LF records and newlines inside quoted fields. Malformed quoting is rejected rather than guessed.

See category