Formula-like prefixes
Prefixes risky markers with your selected escape to reduce execution risk on initial spreadsheet import.
CSV hygiene, before production
Detect formula-like prefixes, duplicate records, empty rows, messy headers, and stray whitespace in one deterministic pass.
文件不离开浏览器。无需账号、不上传文件内容,清理后立即下载。
Local workbench
Adds an apostrophe before risky markers. The apostrophe stays in data, so downstream tools must accept or strip it. Excel may remove its escape behavior after save/reopen. Negative numbers are also prefixed.
Waiting for a CSV.
Cleanup ready
Apostrophe-prefixed export
Useful? Star the project or share feedback. Never attach a private CSV.
Five deterministic checks
CSV Guard makes conservative, repeatable fixes and reports an exact count for every change before you download.
Prefixes risky markers with your selected escape to reduce execution risk on initial spreadsheet import.
Removes byte-equivalent records after leading and trailing whitespace cleanup.
Drops rows with no meaningful value across every detected column.
Normalizes field names and resolves collisions without discarding columns.
Trims invisible edges that break joins, comparisons, and imports.
The risk hiding in plain text
If a cell’s first effective character is =, +,
-, or @, spreadsheet software may interpret it as
a formula. CSV Guard prefixes every such segment—including one exposed
after a comma, semicolon, tab, or pipe—with the mode you select.
No universal CSV prefix strategy works across every spreadsheet and downstream
consumer. Excel can remove apostrophe-based escaping after you save and reopen a
file; the Excel review mode leaves a real tab and an apostrophe in the data. Re-clean
untrusted exports before reopening them. Both modes also prefix negative numbers such as -42,
changing their inferred type. See the
OWASP CSV Injection guidance.
Compare apostrophe and layered tab prefixes, then test your Excel workflow →
| Mode | Best fit | Known trade-off |
|---|---|---|
| Apostrophe prefix | Downstream accepts or strips apostrophe | Apostrophe stays in data; escape may not survive Excel save/reopen |
| Excel review tab + apostrophe | One-time human review in Excel | Both prefixes stay in data and may disrupt imports |
=HYPERLINK("https://example.test")'=HYPERLINK("https://example.test")Browser safety envelope
Large inputs can still be memory-intensive, especially on mobile devices.
Privacy by architecture
Parsing, cleanup, preview, and export all run inside this browser tab. This static edition has no analytics endpoint, no account system, and a browser policy that blocks background network connections.
GitHub Pages serves the initial HTML, CSS, and JavaScript files. After those assets load, CSV Guard makes no network requests; disconnect and the cleaner keeps working. Inspect the viewable source if you want to verify the implementation.
Straight answers
No. File content is parsed and cleaned locally in your browser.
Comma, semicolon, tab, and pipe delimiters are detected automatically.
No. Your original remains untouched. CSV Guard downloads a separate .apostrophe-prefixed.csv or .tab-apostrophe-prefixed.csv copy.
No. It performs deterministic hygiene checks; it does not decide whether an email, identifier, or address is factually correct.