Bases CSV Importer · Obsidian plugin documentation
Bases CSV Importer documentation

Import CSV and TSV files or pasted tabular text into structured Markdown notes with typed YAML frontmatter and a ready-to-open Obsidian .base table view. Everything runs locally in pure TypeScript on desktop and mobile with no external parsing service.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
- Open Settings in Obsidian and go to Community plugins.
- Turn off Restricted mode if it is on, then select Browse.
- Search for Bases CSV Importer, select Install, and then select Enable.
For manual installation from a GitHub release, download main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/bases-csv-importer/, then enable the plugin in Community plugins.
2 Getting started
- Place a
.csvor.tsvfile in your vault, or copy tabular text to your clipboard. - Open the Command Palette and run "Bases CSV Importer: Import CSV or TSV to Base", or right-click a
.csvor.tsvfile in the File Explorer and select "Import to Base". - Confirm the detected delimiter, target folder,
.basefile name, and note title column. - Review the "Markdown note preview" and ".base view preview" tabs to verify YAML property types and column order.
- Select "Import notes". The plugin creates the folder if needed, writes the Markdown notes and
.basefile, and opens the new Base table view.
To update existing notes from a refreshed spreadsheet in Pro:
- Switch "Import mode" to "Upsert / merge by key" and pick the key column.
- Adjust YAML property names, column types, skipped columns, or the Markdown body template as needed.
- Open the "Conflicts" tab to check duplicate keys and filename collisions before running the import.
- After importing, run "Undo last CSV import" if you want to revert the batch.
3 Features
RFC-4180 CSV and TSV importer
Load any .csv or .tsv file from your vault or paste tabular text directly into the importer modal. You can also right-click a .csv or .tsv file in the File Explorer and select "Import to Base" to open it pre-loaded.
The built-in parser handles quoted fields, commas inside quotes, escaped double quotes (""), embedded newlines inside quoted cells, UTF-8 byte-order marks, and both LF and CRLF line endings. Delimiter detection automatically checks comma, tab, semicolon, and pipe separators, and you can override the delimiter at any time.
Auto-detected YAML types and Base table generation
Before writing any note, Bases CSV Importer inspects every column and assigns an Obsidian property type: text, number, boolean, date (YYYY-MM-DD), or list (semicolon, pipe, or bracket-delimited values). Leading-zero codes such as 0042 stay as text so identifiers are not corrupted.
Each row becomes a Markdown note with clean, properly quoted YAML frontmatter and a sanitized filename. Illegal vault filename characters are stripped automatically, empty titles fall back to Row N, and collisions in create mode get numeric suffixes (-2, -3) so existing notes are never overwritten. Alongside the notes, the plugin generates a .base table view filtered to the target folder with every imported property ordered as table columns.
Upsert preserving note bodies, mapping, and Pro features
Free mode includes the full CSV and TSV parser, delimiter detection, automatic column type inference, Markdown note and .base preview, filename sanitization, and imports of up to 25 rows per run with automatic .base view creation.
Pro adds four workflow features for larger spreadsheets and recurring imports:
- Import unlimited rows in a single batch without the 25-row free cap.
- Match existing notes by a key column to update frontmatter while preserving note bodies and one-click undo.
- Rename YAML property keys, override detected column types, skip columns, and apply a Markdown body template.
- Inspect duplicate keys and filename collisions before writing notes to your vault.
In Pro upsert mode, select a key column (such as sku, id, or email) or match by note filename. When a CSV row matches an existing note in the target folder, the plugin updates the mapped frontmatter properties via atomic vault.process while keeping your handwritten Markdown body, unmapped frontmatter properties, and original CRLF or LF line endings untouched.
Every import records an in-memory undo snapshot of newly created files and the previous contents of modified files. Run "Undo last CSV import" from the Command Palette or select "Undo last import" in the modal footer to restore every modified note and move newly created notes to the trash.
Interactive What Pro adds demos
Run "What Pro adds" from the Command Palette or from Settings to inspect each Pro feature on in-memory sample data. Every demo runs inside the modal and never reads or modifies files in your vault.
4 Commands
Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.
| Command | Command id |
|---|---|
| Import ${CSV_LABEL} or ${TSV_LABEL} to Base | bases-csv-importer:open-csv-importer |
| Undo last ${CSV_LABEL} import | bases-csv-importer:undo-last-import |
| What Pro adds | bases-csv-importer:what-pro-adds |
5 Settings
Open Settings and select Bases CSV Importer to configure defaults and manage Pro access.
| Setting | Description |
|---|---|
| Default target folder | Vault folder used when no folder is entered in the importer modal. Defaults to CSV Import. |
| Default delimiter | Choose Auto-detect, Comma (,), Tab (TSV), Semicolon (;), or Pipe (|). |
| Generate Base table view | Turn off to import Markdown notes only without creating a .base file. |
| Open Base after import | Automatically open the generated .base file after the import finishes. |
| Default body template (Pro) | Optional Markdown body template with {{column}} template tokens (for example # {{title}}) applied to newly created notes. |
| Pro and GitHub account | Review what Pro adds, view the catalog offer, or sign in with GitHub to activate Pro features. |
6 Privacy, payment and network
The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.
One payment turns on Pro in every NoteMods plugin.
GitHub handles the payment. Sponsor at https://notemods.com/pro/go?p=bases-csv-importer&s=readme. You need no account for the free features. Pro needs the GitHub account that sponsors.
Until you select "Sign in with GitHub" in the settings, Bases CSV Importer makes no network requests. Sign in uses the GitHub device flow. Bases CSV Importer sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.
After sign in, Bases CSV Importer sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.
After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.
7 Questions and answers
Does this plugin work on Obsidian mobile (iOS and Android)?
Yes. isDesktopOnly is false and the importer uses pure TypeScript with standard Obsidian vault APIs.
Does the plugin upload my CSV files or notes to any server?
No. All CSV parsing, type detection, note creation, and upsert merging run locally on your device. No note content or CSV data ever leaves Obsidian.
What happens when a CSV has more than 25 rows in Free mode?
Free mode imports the first 25 rows and shows how many additional rows require Pro. You can upgrade to import unlimited rows in a single batch.
Will upsert mode overwrite my handwritten notes below the frontmatter?
No. Upsert mode uses atomic vault.process to update only the mapped frontmatter keys while preserving the entire note body, unmapped frontmatter keys, and existing CRLF or LF line endings.
How does leading-zero data like postal codes or IDs behave?
Values such as 0042 stay as text rather than being coerced to 42. You can also override any column type manually in Pro.
8 Support
Report bugs or request features on the GitHub issues page.