Internal links - Obsidian Help
Excerpt
Internal links - Obsidian Help
Learn how to link to notes, attachments, and other files from your notes, using internal links. By linking notes, you can create a network of knowledge.
Obsidian can automatically update internal links in your vault when you rename a file. If you want to be prompted instead, you can disable it under:
Settings â Files & Links â Automatically update internal links.
Supported formats for internal links
Obsidian supports the following link formats:
- Wikilink:
[[Three laws of motion]]
- Markdown:
[Three laws of motion](Three%20laws%20of%20motion.md)
The examples above are equivalentâthey appear the same way in the editor, and links to the same note.
When using the Markdown format, make sure to URL encode the link destination. For example, blank spaces become %20
.
By default, due to its more compact format, Obsidian generates links using the Wikilink format. If interoperability is important to you, you can disable Wikilinks and use Markdown links instead.
To use the Markdown format:
- Open Settings.
- Under Files & Links, disable Use Wikilink.
Even if you disable the Wikilink format, you can still autocomplete links by typing two square brackets [[
. When you select one of the suggested files, Obsidian instead generates a Markdown link.
Link to a file
To create a link while in Editing view, use either of the following ways:
- Type
[[
in the editor and then select the file you want to create a link to. - Select text in the editor and then type
[[
. - Open the Command palette and then select Add internal link.
While you can link to any of the Accepted file formats, links to file formats other than Markdown needs to include a file extension, such as [[Figure 1.png]]
.
Autocomplete functionality switches to a simpler result algorithm when the vault reaches 10,000 items to maintain optimal application performance.
Link to a heading in a note
You can link to specific headings in notes, also known as anchor links.
Linking to a heading within the same note
To link to a heading within the same note, type [[#
 to get a list of headings within the note to link to.
Linking to a heading in another note
To link to a heading in another note, add a hash (#
) at the end of the link destination, followed by the heading text.
Linking to subheadings
You can add multiple hash symbols for each subheading.
Searching for headers across the vault
To search for headers across the entire vault, use the [[#|# header]]
 syntax.
For example, [[##
 will search generically across the vault, whereas [[#|# team]]
 will search for all headers that contain the word team.
Screenshot of searching for a heading link
Link to a block in a note
A block is a unit of text in your note, such as a paragraph, block quote, or list item.
You can link to a block by adding #^
 at the end of your link destination followed by a unique block identifier. For example, [[2023-01-01#^37066d|^37066d]]
.
Fortunately, you donât need to know the identifier. When you type the caret (^
), you can select the block from a list of suggestions to insert the correct identifier.
Searching for blocks across the vault
You can also search for blocks to link to from across your vault using the [[^^block]]
 syntax. However, more items qualify as blocks compared to heading links, so this list will be much longer.
Screenshot of searching for a block link
You can also create human-readable block identifiers by adding a blank space followed by the identifier. Block identifiers can only consist of Latin letters, numbers, and dashes.
For example, add ^quote-of-the-day
 at the end of a block:
"You do not rise to the level of your goals. You fall to the level of your systems." by James Clear ^quote-of-the-day
Now you can link to the block by typing [[2023-01-01#^quote-of-the-day|^quote-of-the-day]]
.
Block references are specific to Obsidian and not part of the standard Markdown format. Links containing block references wonât work outside of Obsidian.
Change the link display text
By default, Obsidian will show the link text as it appears, such as [[Aliases]]
 showing Aliases and [[Basic formatting syntax#code-blocks|Code blocks]]
 showing Basic formatting syntax > Code blocks.
You have the option to modify the text used for displaying a link by using the [[Aliases|Nicknames]]
 and [[Basic formatting syntax#code-blocks|Code blocks]]
 syntaxes to create the Nicknames and Code blocks links.
Wikilink format:
You can use the vertical bar (|
) to change the text used to display a link.
For example, [[Internal links|custom display text]]
appears as custom display text.
Markdown format:
Enter the display text between the square brackets ([]
).
For example, [custom display text](Internal%20links.md)
appears as custom display text.
Preview a linked file
To preview linked files, you first need to enable Page preview.
To preview a linked file, press Ctrl
(or Cmd
on macOS) while hovering the cursor over the link. A preview of the file content appears next to the cursor.