TechBuzzPro

Obsidian Table: How to Make One

· 5 min read · Apps & Browsers

In this article
  1. What Is a Table in Obsidian?
  2. How to Create a Table with Markdown
  3. Using the Command Palette to Insert a Table
  4. Formatting and Aligning Tables
  5. Converting CSV Data to a Table
  6. Common Problems and Solutions
  7. Alternatives to Markdown Tables
  8. Frequently Asked Questions

To make a table in Obsidian, you can use Markdown syntax with pipes (|) and dashes (-), or you can insert a table using the command palette. This article explains both methods, how to format and align tables, and how to use advanced features like CSV conversion and sorting.

What Is a Table in Obsidian?

Obsidian is a note-taking app built on plain text Markdown files. A table is a way to organize data into rows and columns within a note. Obsidian supports the standard Markdown table syntax, which is a lightweight, human-readable format that converts into a structured grid when rendered in the editor. Tables are useful for comparing items, tracking data, or presenting structured information inside your notes.

How to Create a Table with Markdown

The most straightforward way to create a table is to type it directly in a note using Markdown. Here is the basic structure:

| Header 1 | Header 2 | Header 3 |
| -------- | -------- | -------- |
| Cell 1   | Cell 2   | Cell 3   |
| Cell 4   | Cell 5   | Cell 6   |

Each row is a line, and each column is separated by a pipe character |. The second line contains dashes (-) and optional colons (:) to define column alignment. You can use the Tab key to jump to the next cell when typing in the editor, and Obsidian will automatically format the table as you type.

Using the Command Palette to Insert a Table

If you prefer not to type the syntax manually, Obsidian offers a built-in command to insert a table. Follow these steps:

  1. Press Ctrl+P (Windows/Linux) or Cmd+P (Mac) to open the Command Palette.
  2. Type “table” and select the command “Insert table”.
  3. Obsidian inserts a 2×2 table with placeholder cells. You can then click on each cell to edit the content.
  4. To add more rows or columns, right-click on the table and choose “Add row” or “Add column”, or use the Tab key to move to the next cell and create a new row.

This method is faster if you are not comfortable with Markdown syntax, but the result is the same plain-text table.

Formatting and Aligning Tables

Markdown tables support text alignment using colons in the separator line. Here is how to align columns:

  • Left alignment: :--- (default if no colon)
  • Center alignment: :---:
  • Right alignment: ---:

For example, to center the second column:

| Left | Center | Right |
| :--- | :----: | ----: |
| A    | B      | C     |

You can also apply inline formatting inside cells, such as bold, italics, links, and code. However, block elements like lists or headings cannot be placed inside a table cell.

Converting CSV Data to a Table

If you have data in CSV (comma-separated values) format, you can quickly convert it into a Markdown table using an online converter or a community plugin. One popular plugin is “Advanced Tables”, which adds a toolbar and CSV-to-table conversion. Without a plugin, you can manually paste CSV data and then use the “Transform to table” command if you have the Advanced Tables plugin installed. Otherwise, you can use a web-based CSV-to-Markdown converter and paste the output into Obsidian.

Common Problems and Solutions

  • Table does not render: Ensure there is a blank line before and after the table, and that the separator line has at least three dashes per column.
  • Pipes inside cells: If you need to include a pipe character in a cell, escape it with a backslash \|.
  • Merging cells: Markdown does not support rowspan or colspan. For complex tables, consider using HTML tables, though Obsidian’s rendering may be limited.
  • Sorting rows: Obsidian does not have built-in sorting for tables. You can sort manually or use a community plugin like “Sortable” that adds clickable headers.

Alternatives to Markdown Tables

If you need more advanced table features, you can use HTML tables directly in Obsidian. For example:

<table>
  <tr><th>Name</th><th>Age</th></tr>
  <tr><td>Alice</td><td>30</td></tr>
</table>

HTML tables allow merging cells and more styling, but they are less readable in the source view. Another option is to embed a spreadsheet-like view using the “Dataview” plugin, which can query and display data from your notes as a table, but that requires learning its query language.

Frequently Asked Questions

How do I add a row to an existing table?

Click on the last cell of the table and press Tab to create a new row. Alternatively, right-click on the table and choose “Add row” from the context menu.

Can I sort a table alphabetically in Obsidian?

Not natively. You can install the “Sortable” community plugin, which adds clickable headers to sort rows. For one-time sorting, you can copy the table to a spreadsheet, sort there, and paste back.

Why does my table show as plain text?

Make sure your note is in Live Preview or Reading view. If you are in Source mode, you will see the raw Markdown. Also, ensure there is a blank line before the table and that the separator line uses at least three dashes.

Can I use formulas in Obsidian tables?

No, Markdown tables are static. For calculations, you can use the “Dataview” plugin or embed a JavaScript widget, but that requires coding knowledge. For simple arithmetic, consider using a calculator note or an external spreadsheet.

How do I center a table on the page?

Obsidian does not provide a built-in way to center a Markdown table. You can wrap the table in an HTML <div> with style="text-align:center", but this may not work in all themes.