Free Tool
Obsidian Frontmatter Generator
Hand-written Properties are easy to mistype — missing quotes, the wrongtags key, or a list that is not valid YAML. Paste a JSON object or a JavaScript expression and copy Obsidian-ready frontmatter. Everything runs in your browser — nothing is uploaded.
or drop a file onto the input area below
Paste JSON or a JavaScript object. YAML updates as you type.
YAML frontmatter
Copy this to the top of an Obsidian note.
How to generate Obsidian frontmatter
- Paste a JSON object, or switch to JavaScript for a plugin-style template.
- If you use
file.basename,file.parent.path, orfile.tags, fill in Note context. - YAML updates as you type. Canonical keys map
tag→tags,alias→aliases, andcssclass→cssclasses. - Click Copy YAML or Download .mdand paste the block at the top of the note.
Why generate Properties this way?
Obsidian plugins can evaluate a JSON or JavaScript template against the current file on save. You do not need that plugin for a one-off note. This page runs the same kind of template in the browser, with folder, title, and tags that you type instead of reading the vault.
JSON is the default because it cannot run code. JavaScript is for templates like{ title: file.basename, folder: file.parent.path }.
Notes
- The template must be an object. Arrays and primitives are rejected.
- JavaScript is an expression that returns an object. It runs in this page only. There is no
dvDataview API, Zod, or access to other notes. #prefixes are stripped fromtagsvalues because Properties storerecipe, not#recipe.- Does not write to your vault or run on save.
- Template text is limited to 1 MB.
- Copy to clipboard requires a secure connection (HTTPS) and browser permission.