# Internal links

```yaml
aliases:
  - How to/Internal link
  - How to/Link to blocks
cssclasses:
  - soft-embed
description: Learn how to link to notes, attachments, and other files from your notes, using internal links.
mobile: true
permalink: links
publish: true
```

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](/content/help/settings/index.html)** → **[Files and links](/content/help/settings#Files%20and%20links/index.html)** → **[Automatically update internal links](/content/help/settings#Automatically%20update%20internal%20links/index.html)**.

## Supported formats for internal links

Obsidian supports the following link formats:

- Wikilink: `[[Three laws of motion]]` or `[[Three laws of motion.md]]`
- Markdown: `[Three laws of motion](Three%20laws%20of%20motion)` or `[Three laws of motion](Three%20laws%20of%20motion.md)`

The examples above are equivalent, and they appear the same way in the editor and links to the same note.

To link to a note in a folder, include the folder path before the note name. Folder paths start at the vault root and use forward slashes (`/`), even on Windows: `[[Projects/Three laws of motion]]` or `[Three laws of motion](Projects/Three%20laws%20of%20motion.md)`.

If the link points to a note that doesn't exist yet, Obsidian creates the note at that folder path instead of using your [default location for new notes](/content/help/settings#Default%20location%20for%20new%20notes/index.html).

Note
When using the Markdown format, make sure to [URL encode](https://en.wikipedia.org/wiki/Percent-encoding) 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:

1. Open **[Settings](/content/help/settings/index.html)**.
2. Under **Files and Links**, disable **Use \[\[Wikilinks\]\]**.

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 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.

For example, `[[#Preview a linked file]]` will create a link to [Preview a linked file](/content/help/links#Preview%20a%20linked%20file/index.html).

**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.

For example, `[[About Obsidian#Links are first-class citizens]]` will create a link to [About Obsidian > Links are first-class citizens](/content/help/obsidian#Links%20are%20first-class%20citizens/index.html).

**Linking to subheadings**

You can add multiple hash symbols for each subheading.

For example, `[[Help and support#Questions and advice#Report bugs and request features]]` will create a link to [Help and support > Questions and advice > Report bugs and request features](/content/help/resources#Questions%20and%20advice#Report%20bugs%20and%20request%20features/index.html).

## 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]]`. Fortunately, you don't need to manually find the identifier—when you type the caret (`^`), a list of suggestions will appear, allowing you to select the correct block.

We do not support links to specific parts of quotations, callouts, and tables.

**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.

## Change the link display text

By default, Obsidian will show the link text as it appears. For example:

- `[[Example]]` displays as [Example](/content/help/Example/index.html)
- `[[Example#Details]]` displays as [Example > Details](/content/help/Example#Details/index.html)

You can change how a link is displayed by customizing its link text:

**Wikilink format**:

Use a vertical bar (`|`) to change the display text.

- `[[Example|Custom name]]` appears as [Custom name](/content/help/Example/index.html)

**Markdown format**:

Use `[Display text](Link URL)` to customize how the link appears.

- `[Custom name](Example.md)` appears as [Custom name](/content/help/Example/index.html)

Tip
Use [link display text](/content/help/links#Change%20the%20link%20display%20text/index.html) when you want to customize how a link looks _in a specific place_.

Use [aliases](/content/help/aliases/index.html) when you want to refer to the same note using _different names_ throughout your vault.
