Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Folder to Tag

merijnvervoornmerijnvervoorn390 downloads

Automatically adds or updates a tag based on the folder a note is in. Updates both on creation and file move.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Automatically tags notes in Obsidian based on the folder they are stored in. Ideal for users who organize notes by folder but want to leverage tags for easier searching, linking, and graph view.


Features

  • Automatically adds a tag that matches the folder(s) of each note in frontmatter.
  • Updates tags when notes are moved or renamed.
  • Preserves all other frontmatter fields (aliases, dates, custom properties, etc.).
  • Compatible with existing frontmatter that do or do not have tags:.
  • Configurable folder depth and tag formatting.
  • Optional prefix and suffix for tags.

Folder Depth Options

Choose how many folder levels to include in tags:

Option Example (note path: main-folder/sub-folder/last-folder/note.md)
Default (1) #last-folder
Depth 2 (split) #last-folder + #sub-folder
Depth 2 (single) #sub-folder/last-folder
Full path #main-folder/sub-folder/last-folder

You can also optionally add a prefix or suffix to all folder tags, e.g., prefix- → #prefix-folder.


Usage

  • When a new note is created, the plugin automatically adds folder tag(s) to the tags: property.

  • If a note is moved or renamed, the plugin updates its tag(s) to match the new folder path.

  • Use the settings tab to:

    • Reapply tags to all notes: Updates all notes with the correct folder tags in frontmatter.
    • Remove all folder tags: Removes any tag matching the note’s folder from the frontmatter tags: property. Preserving any other frontmatter (including other tags).

License

This plugin is released under the GNU GPL v3.

HealthExcellent
ReviewPassed
About
Tag notes based on their folder path by adding folder-derived tags to each note's frontmatter. Update tags automatically when notes move or are renamed, preserve all other frontmatter fields, and configure folder depth and tag formatting with optional prefix or suffix.
TagsFoldersAutomation
Details
Current version
1.2.3
Last updated
2 months ago
Created
10 months ago
Updates
5 releases
Downloads
390
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Author
merijnvervoornmerijnvervoorn
merijnvervoorn.com/
GitHubmerijnvervoorn
  1. Community
  2. Plugins
  3. Tags
  4. Folder to Tag

Related plugins

Waypoint

Easily generate dynamic MOCs in your folder notes using waypoints. Enables folders to show up in the graph view and removes the need for messy tags!

Auto Note Mover

Automatically move the active notes to their respective folders according to rules you set.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

BRAT

Easily install a beta version of a plugin for testing.

Advanced URI

Control everything with URI.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Hot Reload

Automatically reload in-development plugins when their files are changed

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.