link

Learn how to use the link function in Notion formulas.

The link() function allows you to turn a string into a clickable hyperlink.

link(string, urlString)

string.link(urlString)
Code language: JavaScript (javascript)

Note that the URL string is not validated, so an invalid URL can be entered. The string will still be displayed as a link, it will simply not work when clicked on.

Link prefixes for email addresses (mailto:) and telephone numbers (tel:) are also supported.

You can also use the id function as the second argument in order to create a link to a Notion page without needing the full page link. Currently, links will open in a new tab when you’re using the desktop app.

link("Thomas Frank", "https://thomasjfrank.com")

"College Info Geek".link("https://collegeinfogeek.com")

link("Email Me", "mailto:[email protected]")

"Call Me".link("tel:112233445566")

"Current Page".link(id())
Code language: JavaScript (javascript)
About the Author

My name is Thomas Frank, and I'm a Notion-certified writer, YouTuber, and template creator. I've been using Notion since 2018 to organize my personal life and to run my business and YouTube channel. In addition to this formula reference, I've created a free Notion course for beginners and several productivity-focused Notion templates. If you'd like to connect, follow me on Twitter.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas