CSV Sharing Preflight
Before you send a CSV to a client, a marketplace or a spreadsheet app, scan it here: the checker flags formula-injection cells that can execute when the file is opened, and the values most likely to be mangled by Excel or Google Sheets — long numbers, leading zeros and look-alike dates. Everything is read on this device; the file is never uploaded.
A CSV file looks inert — plain text, commas, done. Two different traps hide in that plainness. The first is formula injection: when a cell begins with =, +, -, @ or a few rarer triggers, Excel, Google Sheets and LibreOffice may evaluate it as a formula the moment the file opens. The best-known payloads call out to external resources or run commands through legacy DDE, but even a harmless-looking =2+5 proves the mechanism: whoever exported the data controls what the opener’s spreadsheet executes. The usual source is user-generated content — names, reviews, addresses — exported from a database into a CSV that someone in finance or support then opens. Sanitising those leading characters before the file travels is a standard line in the OWASP cheat sheet on CSV injection, and it is the first thing this preflight checks.
…or paste CSV text:
No share link and no history for this tool: a CSV can carry customer data, so your content never leaves this page — not into a URL, not into storage, not to a server.
Quick answers
What is CSV formula injection?
When a CSV cell starts with =, +, -, @ or a similar trigger, spreadsheet apps may treat the cell as a formula and evaluate it when the file is opened. Attackers plant such cells in user-generated data (names, reviews, form fields) that later gets exported to CSV and opened by staff. The OWASP CSV Injection cheat sheet recommends sanitising cells that begin with those characters, plus any cell where the trigger follows whitespace or a tab.
The same export can be perfectly safe as data and dangerous as a spreadsheet. That is why the check belongs at sharing time, on the file itself, rather than in the app that produced the data.
Why do long numbers get corrupted in Excel and Google Sheets?
Spreadsheets store numbers as double-precision floating point, which holds about 15 significant decimal digits. A 16- or 19-digit account, card or ID number is rounded on import and the lost digits cannot be recovered. Long numbers may also be re-displayed in scientific notation. Keep identifiers as text — or check them with this preflight before the file travels — if the exact digits matter.
Leading zeros are the companion problem: 007123 is a perfectly good SKU and a perfectly good way to write the number 7123, and the spreadsheet chooses the number. Postal codes, SKUs and account references are the usual casualties.
What does the neutralised copy change?
Only the formula-injection cells: a leading apostrophe is prefixed so spreadsheet apps display the cell as text instead of evaluating it. Precision and format risks (long numbers, leading zeros, date look-alikes) are reported in the flag table but never rewritten automatically, because the right fix — usually storing the value as text at the source — is a data decision, not a formatting one.
The neutralised copy is generated in your browser from the file you provided. Nothing is uploaded at any point.
How to use
- Drop the CSV you are about to share (or paste its text) and run the preflight. The file is read in this page only.
- Read the two counts: formula-injection cells are the security problem, precision and format risks are the data-corruption problem.
- Work down the flag table — row, column, value and why it was flagged — and fix the source data where the flag is real.
- If formula cells were flagged, download the neutralised copy: formula-trigger cells are prefixed with an apostrophe so spreadsheet apps show them as text. Precision risks are reported, never silently rewritten.
About this tool
The second trap is quieter: spreadsheets mangle values without asking. Numbers are stored as double-precision floats, so anything past 15 significant digits is truncated — a 16-digit reference number comes back with its last digits zeroed. Leading zeros are dropped, turning the SKU 007123 into 7123 and breaking the match against every other system. Long numbers flip into scientific notation on re-export. And text that merely resembles a date — a range like 3-4, a product code like MAR1 — is converted into one, a failure so common in genomics that journals renamed genes to escape it. None of these show up as errors; the file opens fine and the data is simply wrong afterwards.
The transferable habit is to preflight the file, not the intention. The person sending the CSV rarely typed the dangerous cell, and the person opening it cannot see which values were rewritten on the way in. A thirty-second scan at the sending end — formula triggers, digit counts, leading zeros, date look-alikes — catches both the hostile cell and the honest corruption before either travels. This page performs that scan locally: your file is read in the browser, never uploaded, never stored, and never turned into a link.
How it works
The formula-injection mechanism is a parser disagreement. To the exporting database, =2+5+cmd|’ /C calc’!A0 is a string a user typed. To the spreadsheet that opens the export, a leading = is an instruction to evaluate. Every defence is a way of forcing the second parser to see text: prefixing an apostrophe, a space-plus-quote, or a tab changes the first character the evaluator looks at. The scan therefore keys on the first non-space character of each cell, not on whether the cell “looks like” a formula — payloads are designed to look like data.
The precision mechanism is representation, not carelessness. A double-precision float carries 52 bits of mantissa, about 15.95 decimal digits, so the sixteenth digit of an identifier is not stored approximately — it is not stored at all. Leading zeros fail for the opposite reason: they are present in the text but meaningless to the numeric type the importer chooses. Both failures share a signature worth remembering: the file opens without any error, and the corruption is discovered later, downstream, by someone comparing two systems that no longer agree.
That asymmetry — loud security failure, silent data failure — is why a preflight checks both in one pass. The formula cell wants a victim; the 19-digit reference number just wants a sender who never counted its digits. Scanning at the moment of sharing catches the pair of them at the only point where the original values are still in front of you.
Worked examples
Support-ticket export with a planted formula: A tickets export contains the name =2+5+cmd|’ /C calc’!A0 in row 14. The preflight flags it as a formula-injection cell, and the neutralised copy prefixes it with an apostrophe so the support lead opens text, not a payload.
Supplier price list with long references: A price list carries 19-digit supplier reference numbers and SKUs like 007123. The scan reports the references as precision risks (over 15 digits) and the SKUs as leading-zero risks — both would have been rewritten by the customer’s spreadsheet on import.
Clean mailing-list extract: A newsletter extract with names, emails and signup dates in ISO format returns no flags: no formula triggers, no over-length numbers, no date look-alikes. The sender still eyeballs the list — the preflight covers patterns, not judgement.
Quick reference
| Check | Pattern | What happens without the check |
|---|---|---|
| Formula injection | Cell starts (after spaces, or after a tab) with =, +, -, @, | or % | Spreadsheet evaluates the cell on open; payloads can call external resources or legacy command channels |
| Precision loss | Integer with more than 15 significant digits | Digits past the 15th are zeroed by double-precision storage; identifiers no longer match |
| Leading zero | Numeric value starting with 0 and longer than one digit | Zero stripped on import; SKUs, postal codes and references break |
| Scientific notation | Whole number of 9–15 digits | May display or re-export as 1.23E+11, corrupting identifiers on re-save |
| Date look-alike | Short patterns like 3-4, 12/25 or MAR1 | Converted to a calendar date on open, even when the value is a range or a code |
Method sources: OWASP Cheat Sheet Series — CSV Injection (trigger characters and sanitisation); IEEE 754 double-precision limits as documented by Microsoft and Google for their spreadsheet importers. Verified 28 November 2026.
Frequently asked questions
Is my file uploaded for scanning?
No. The file is read with the browser’s FileReader into this page’s memory, scanned here, and gone when you close the tab. There is no server endpoint for this tool and no share link, by design.
Which starting characters count as formula triggers?
The checker flags cells whose first non-space character is =, +, -, @, | or %, plus triggers that follow a leading tab — the set covered by the OWASP CSV injection guidance. A negative number like -42 will be flagged too; that is deliberate. A human can dismiss it in a second, and the cost of the false positive is far lower than the cost of a missed payload.
Does a clean result mean the CSV is safe to open?
It means none of the patterns this tool checks were found: formula triggers, over-precision numbers, leading-zero values, scientific-notation risks and date look-alikes. It cannot judge the content itself — wrong prices, personal data that should not be shared, or encoding problems are outside its scope.
Why not fix the precision problems in the download too?
Because there is no safe automatic fix. Prefixing an apostrophe changes what other systems read; quoting rules differ between importers. The flag table tells you exactly which cells to repair at the source, where the value can be stored as text properly.
Sources and method
Formula-trigger set and sanitisation approach follow the OWASP Cheat Sheet Series, “CSV Injection”. The 15-significant-digit limit is the documented behaviour of IEEE 754 double-precision storage used by Excel and Google Sheets. This page was built and verified on 28 November 2026.
First time embedding? Read the step-by-step guide →
More free tools
Base64 Encode / Decode
Encode text to Base64 or decode it back.
Color Converter (HEX ↔ RGB)
Convert HEX to RGB and back, with live preview.
Unit Converter
Convert length, weight and temperature instantly.
Currency Converter
Daily ECB reference rates for 26 currencies — updated once per business day.
World Clock & Time Converter
Current time in major cities, plus converter.
Meeting Time Planner
Find overlap hours across time zones.