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

Auto Heading Numbers

gaofenggaofeng57 downloads

Automatically number or re-number headings in an Obsidian document

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Add numbers to headings in a doc with outline style numbering. For example, "1.1.2".

How to install

There are two ways to get the plugin:

  1. Install the latest release from Obsidian directly. Go to Settings -> Community Plugins -> Browse.
  2. Unzip the most recent release into your <vault>/.obsidian/plugins/ folder. You can find the latest release at https://github.com/gao-feng/auto-heading-numbers/releases/latest.

After you have installed the plugin, make sure that the switch for "Auto Heading Numbers" is turned on.

How to use the plugin

To use this plugin:

  1. Open the command palette (type CMD + P on Mac or its equivalent on other platforms).
  2. Start typing the name of one of the actions. See below:
Action Hotkey
Number all headings in document (and show options) None by default
Number all headings in document None by default
Remove numbering from all headings in document None by default
Save settings to front matter None by default

You can also assign the commands to hotkeys for easy usage.

See the settings page for the plugin for detailed instructions on the various settings you can use with the plugin.

Version History

1.17.0 (Aug 26, 2026)

  • Renamed plugin to "Auto Heading Numbers" (id: auto-heading-numbers) to differentiate from the upstream fork. Front matter keys and command IDs are unchanged for backward compatibility.

1.16.0 (Oct 3, 2023)

  • Added support for skipping headings using the skip front matter setting. See https://github.com/onlyafly/number-headings-obsidian/issues/25.

1.15.0 (Sep 23, 2023)

  • Added option to turn off automatic numbering for specific files. See https://github.com/onlyafly/number-headings-obsidian/issues/43.

1.14.0 (Sep 21, 2023)

  • Fixed bug where you could no longer automatically insert settings on a per document basis. See https://github.com/onlyafly/number-headings-obsidian/issues/54.

1.13.0 (Jan 6, 2023)

  • Added support for a right parenthesis as a separator.

1.12.0 (Jan 1, 2023)

  • Added support for Roman numerals as numbers. See https://github.com/onlyafly/number-headings-obsidian/issues/34.

1.11.0 (Jan 1, 2023)

  • Added the 'start-at' setting to allow numbering to start at a number other than 1. See https://github.com/onlyafly/number-headings-obsidian/issues/33.
  • Fixed bug where table of contents would cause Obsidian to freeze if there is no other headings. See https://github.com/onlyafly/number-headings-obsidian/issues/37.

1.10.1 (Dec 31, 2022)

  • Fixed bug where a separator like " -" (space before a dash) would cause a loop during header updates. See https://github.com/onlyafly/number-headings-obsidian/issues/36.

1.10.0 (June 29, 2022)

  • Added new command "Number all headings in document (and show options)" which shows the options dialog after numbering. Changed the old command "Number all headings in document" to number without showing the dialog. See https://github.com/onlyafly/number-headings-obsidian/issues/15.

1.9.0 (June 19, 2022)

  • Fixed several bugs. See https://github.com/onlyafly/number-headings-obsidian/issues/29, https://github.com/onlyafly/number-headings-obsidian/issues/23, and https://github.com/onlyafly/number-headings-obsidian/issues/13.

1.8.1 (December 15, 2021)

  • Fixed bug where in some situations settings were not transferred to the front matter. See https://github.com/onlyafly/number-headings-obsidian/issues/19

1.8.0 (October 26, 2021)

  • Add automatic table of contents rendering
  • Add first-level setting to allow skipping several heading levels
  • Fixed bug where skipped headings that started with numbers would be erased

1.7.3 (August 24, 2021)

  • Cleaned up explanations of front matter in settings screen.

1.7.2 (August 19, 2021)

  • Improved how numbering is inserted behind the scenes, so that undo history is preserved better and works faster.

1.7.1 (August 18, 2021)

  • Fixed bug where skipped headings might have separators incorrectly inserted.

1.7.0 (August 18, 2021)

  • Added support for custom separators between the heading numbering and the heading text.

1.6.1 (August 15, 2021)

  • Improved how headings are inserted, so that the undo history is not polluted with too many irrelevant changes.

1.6.0 (August 14, 2021)

  • Simplified the front matter settings to use a single key

1.5.1 (August 14, 2021)

  • Fixed some bugs where "undefined" sometimes got printed at the start of lines after user removed a heading

Credits

I was inspired partially by the Obsidian plugin https://github.com/hipstersmoothie/obsidian-plugin-toc and some of the code logic is descended from that plugin. Thanks!

HealthGood
ReviewSatisfactory
About
Number document headings in outline style (e.g., 1.1.2) across nested levels. Apply or remove numbering, save numbering settings to front matter per file, and choose Roman numerals or alternate separators like a right parenthesis.
OutliningFormattingProperties
Details
Current version
1.17.2
Last updated
4 weeks ago
Created
6 months ago
Updates
3 releases
Downloads
57
Compatible with
Obsidian 1.4.4+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
gaofenggaofeng
GitHubgao-feng
  1. Community
  2. Plugins
  3. Outlining
  4. Auto Heading Numbers

Related plugins

Number Headings

Automatically number or re-number headings.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Admonition

Admonition block-styled content.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Outliner

Work with your lists like in Workflowy or Roam Research.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Update modified date

Automatically update a frontmatter modified date field when the file is modified.

Sort and Permute lines

Sort and Permute lines in whole file or selection.