Bases CSV Sync · Obsidian plugin documentation
Bases CSV Sync documentation

Bases CSV Sync exports Obsidian Bases views to CSV, imports CSV rows into Markdown notes with typed YAML frontmatter, and runs two-way diff and merge sync between .base views and spreadsheets. Move project trackers, reading logs, client lists, and research tables between Obsidian and Excel, Google Sheets, Airtable, or Zotero without losing note bodies or breaking properties.
Pro costs $15 one time or $5 a month: Sponsor or $15 one-time offer.
Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.
1 Installation
- Open "Settings -> Community plugins", select "Browse", and search for "Bases CSV Sync".
- Select "Install" and then "Enable".
For manual installation, copy main.js, manifest.json, and styles.css from a release into <vault>/.obsidian/plugins/bases-csv-sync/ and enable the plugin. You need Obsidian 1.13.4 or later.
2 Getting started
Create a .base file or open a folder of notes with YAML frontmatter properties such as status, hours, and rate. Run "Export base view to CSV" from the command palette to write a clean RFC 4180 spreadsheet into your vault. To bring spreadsheet rows back, place a .csv file in your vault and run "Import CSV into notes".
- Run "Export base view to CSV" from the ribbon icon or command palette. Pick a
.basefile (or all vault notes), choose a view, confirm the output path, and select "Export CSV". - Run "Import CSV into notes" to turn any
.csvor.tsvfile in your vault into Markdown notes with typed YAML frontmatter. - For two-way synchronization (Pro), run "Run two-way base CSV sync", pick the
.basefile, the.csvfile, the match key property, and the merge policy, then select "Apply two-way merge". - Save frequent pairings as named sync profiles and run "Run all saved sync profiles" whenever you finish editing a spreadsheet.
Example .base file using Obsidian Bases formulas that export cleanly when computed formula export (Pro) is enabled:
filters:
and:
- file.inFolder("Projects")
- status != "archived"
formulas:
budget: "(hours * rate).round(2)"
tier: 'if(hours >= 10, "large", "standard")'
views:
- type: table
name: Active Projects
order:
- file.name
- status
- hours
- formula.budget
- formula.tier
3 Features
Export Base views to RFC 4180 CSV
Select any .base file, pick one of its named views, and export matching notes to CSV. The exporter reads top-level and view-level filters:, follows the view order: column list, and applies view sort: rules. Quoted fields, embedded commas, double quotes, and line breaks follow RFC 4180, with optional UTF-8 BOM output for Excel and formula-injection protection.
Import CSV rows into Markdown notes
Open "Import CSV into notes" to pick any .csv or .tsv file in your vault. Choose the title column, target folder, and frontmatter mapping, with a per-column type selector (Auto, Text, Number, List, or Boolean). tags and aliases split automatically into YAML lists, while existing notes keep their Markdown body untouched.
Two-way diff and merge sync (Pro)
When both your vault notes and a spreadsheet change, run "Run two-way base CSV sync" to match rows by file.name, file.path, or a custom ID property. Review unchanged, changed, CSV-only, and vault-only counts before applying csv-wins, vault-wins, or prefer-non-empty. New CSV rows become Markdown notes, changed fields patch frontmatter, and vault-only notes append to the CSV.
Saved sync profiles, formula export, and JSON or TSV (Pro)
Save recurring .base and .csv pairings as named sync profiles in settings, then re-sync one profile or run "Run all saved sync profiles". Enable computed formula columns to evaluate .base formulas: using Obsidian Bases syntax (if(cond, a, b) and methods like .round(2) and .lower()). Export views to JSON or TSV whenever scripts need those formats.
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 |
|---|---|
| Export base view to CSV | bases-csv-sync:export-base-csv |
| Import CSV into notes | bases-csv-sync:import-csv-notes |
| Run two-way base CSV sync | bases-csv-sync:two-way-sync |
| Run all saved sync profiles | bases-csv-sync:run-sync-profiles |
5 Settings
After a minor or major update, this plugin opens one What's new tab in the background. The tab and settings card suggest other NoteMods plugins and Zovo Chat and link to notemods.com for feedback (privacy). The tab sends no data. Turn the tab off in Settings.
| Setting | Default | What it does |
|---|---|---|
| Default export folder | exports |
Vault folder where exported CSV, TSV, and JSON files are written. |
| Default import folder | imports |
Vault folder where newly imported Markdown notes are created. |
| CSV delimiter | , |
Field separator used when exporting CSV files (comma or semicolon). |
| List value separator | ; |
Separator used to join and split YAML list properties in CSV cells. |
| Include UTF-8 BOM | Off | Prepends a UTF-8 byte order mark so Excel detects Unicode text automatically. |
| Guard spreadsheet formulas | On | Prefixes cells starting with =, +, -, or @ with an apostrophe to block formula injection. |
| Default merge policy | csv-wins |
Conflict resolution rule used for two-way sync (Pro). |
| Saved sync profiles (Pro) | Empty list | Named .base and .csv sync pairings with one-click re-sync buttons. |
6 Pro
The command "What Pro adds" lists every paid feature with an interactive demo on sample data.
- Run two-way diff and merge sync between a base view and a CSV file with conflict policies.
- Save named sync profiles in settings and re-sync all profiles in one command.
- Evaluate Obsidian Bases formulas during export and include computed formula columns.
- Export any base view to structured JSON or tab-separated TSV alongside CSV.
Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.
The free version has no note limit. To turn on Pro:
- Sponsor through GitHub Sponsors. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply.
- Open the settings of Bases CSV Sync in Obsidian and select "Sign in with GitHub".
- Enter the copied code at github.com/login/device and approve the read-only profile check.
7 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://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=bases-csv-sync. 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 Sync makes no network requests. Sign in uses the GitHub device flow. Bases CSV Sync 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 Sync 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.
8 Questions and answers
Does importing a CSV overwrite the body of my existing notes?
No. When an imported row matches an existing Markdown note, Bases CSV Sync uses Obsidian's processFrontMatter API to update only the mapped YAML properties while preserving existing list and string types. Your headings, prose, callouts, and embeds remain intact. During two-way sync, blank CSV cells never erase populated vault properties, and blank vault fields never erase populated CSV cells.
How are list properties like tags stored in CSV?
YAML list properties are joined with the configured list separator (default ;) during export. On import and two-way sync, tags, aliases, existing YAML list properties, and columns set to List split back into YAML arrays, while plain text columns containing semicolons stay strings.
Which formula syntax works for computed formula export?
Bases CSV Sync evaluates Obsidian Bases formula expressions using method syntax (such as (hours * rate).round(2), title.lower(), and tags.contains("urgent")) and if(condition, whenTrue, whenFalse). JavaScript ternary syntax (? :) is rejected with a clear error message because Obsidian Bases uses if().
Does it work on phones and tablets?
Yes. The plugin sets isDesktopOnly to false and uses standard Obsidian dialogs and vault file APIs.
9 Support
Plugin page: bases-csv-sync.
Report bugs in the GitHub issues with your Obsidian version and a sample .base or .csv file if you can.