Supported link formats
Obsidian supports two link formats:| Format | Example |
|---|---|
| Wikilink | [[Three laws of motion]] |
| Markdown | [Three laws of motion](Three%20laws%20of%20motion) |
When using Markdown links, URL-encode the link destination. Spaces become
%20.
Even with Wikilinks disabled, typing
[[ still triggers autocomplete — Obsidian generates Markdown links when you select a suggestion.
Create a link
In Editing view, use any of these methods:- Type
[[and select the file you want to link to. - Select text in the editor, then type
[[to wrap it in a link. - Open the Command palette and run Add internal link.
Link to a heading
You can link to specific headings within notes using anchor links. Within the same note — type[[# to see a list of headings in the current note:
# after the note name, followed by the heading text:
# symbols:
[[## syntax:
Link to a block
A block is a unit of text — a paragraph, blockquote, list item, or table. You can link directly to any block. Add#^ after the note name, followed by a block identifier:
^, Obsidian shows a list of blocks in the target note so you can select the right one without knowing the identifier.
Block identifier placement
For simple paragraphs, place the identifier at the end of the line after a space and caret:Human-readable block identifiers
You can write descriptive identifiers instead of random strings. Block identifiers may only contain Latin letters, numbers, and dashes:[[^^ to browse all blocks:
Change the display text
By default, Obsidian displays the link destination as the link text:[[Example]]displays as Example[[Example#Details]]displays as Example > Details
|) before the display text:
[Display text](URL) syntax:
How Obsidian resolves links
Obsidian resolves links by finding the best match among files in your vault. You can control the path format Obsidian uses when creating links by going to Settings → Files and links → New link format:Shortest path when possible (default)
Shortest path when possible (default)
Obsidian uses only the filename if it is unique in the vault:If two notes share a name, Obsidian adds enough path components to disambiguate.
Relative path from current note
Relative path from current note
The link path is relative to the location of the note containing the link:
Absolute path in vault
Absolute path in vault
The link path starts from the vault root:
Preview a linked file
To preview a linked file without opening it, hover over the link. In Editing view, holdCtrl (or Cmd on macOS) while hovering.
You must enable Page preview in Settings for hover previews to work.