Showing Obsidian front matter using Dataview queries
How to use the dataview plugin to display the YAML front matter of Obsidian notes as a table
In this article, I want to share a cool trick for Obsidian that a friend and I used to display the YAML front matter of a note as a table.
YAML front matter in Obsidian
In Obsidian, we can add YAML front matter to our notes. This enables us to add structure to our notes as metadata. This is very useful and enables various use cases (e.g., automation). I use the front matter extensively in my PKM system.
Here's an example:
I've added a number of keys to my contact notes. These enable me to build a super simple (and useful!) contact management system. It makes it super easy to find the information I need when I need it.
The "problem" is that the front matter is only visible in the edit mode, which is not ideal. Luckily, my friend Alexis helped me build a Dataview query that makes it possible to display the YAML front matter as an inline table.

Dataview query to display the front matter of a note as a table
Here's the dataview query that we've built:
This query first retrieves the contents of the YAML front matter, excludes the "Tags" field (as those are accessible in other ways already), and renders those as a table. The result looks like this in the view mode:

By the way, I've included this query in the "Person" template of my Obsidian Starter Kit.

That's it for today! ✨
Go Further


Want to go deeper?

About Sébastien
I'm Sébastien Dubois, and I'm on a mission to help knowledge workers escape information overload. After 20+ years in IT and seeing too many brilliant minds drowning in digital chaos, I've decided to help people build systems that actually work. Through the Knowii Community, my courses, products & services and my Website/Newsletter, I share practical and battle-tested systems.
I write about Knowledge Work, Personal Knowledge Management, Note-taking, Lifelong Learning, Personal Organization, Productivity, and more. I also craft lovely digital products and tools.
If you want to follow my work, then become a member and join our community.
Ready to get to the next level?
Since you're interested in Obsidian:
- 🚀 Obsidian Starter Kit — Skip weeks of setup with 40+ templates
- 🎬 Obsidian Starter Course — Master Obsidian in 2+ hours
- 📚 KM for Beginners — 10+ hours of structured video lessons
- 🎯 Join Knowii — Community + ALL courses & tools
Found this valuable? Share it with someone who needs it.

