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

Smart Link Formatter

ccmdiccmdi1k downloads

Automatically fetches page metadata from pasted links, with explicit support for specific websites.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates15

A plugin for Obsidian that automatically formats pasted links with metadata.

It has explicit support for:

  • YouTube
  • Twitter/X
  • Reddit
  • YouTube Music
  • GitHub
  • Image links

Features

  • Automatically formats pasted links
  • Supports custom formatting for all clients, as well as regular links
  • Blacklist domains to prevent automatic formatting
  • Toggle auto-linking on/off

Formatting

Variables are replaced dynamically by the plugin. The first instance of square brackets [] will be a hyperlink for the clipboard content.

For default links, the following variables are available:

  • {title} - Page title
  • {url} - The URL of the page

Example format: [{title}]

If you need to format a date (e.g. upload_date), you can use moment.js date formats: {upload_date|MMMM Do, YYYY}

Capturing

Clients in the plugin have unique variables you can capture. For instance, when pasting a YouTube link, the following variables are available for formatting:

  • {title} - Video title
  • {channel} - Channel name
  • {uploader} - Uploader name (which can sometimes differ from channel)
  • {duration} - Length of the video
  • {views} - Number of views
  • {upload_date} - When the video was uploaded
  • {description} - Video description
  • {url} - The URL of the video
  • {timestamp} - For timestamped links (formats as @HH:MM:SS or @MM:SS)

Example format: [{title}] by {channel}

Other clients follow similar patterns, and their variables can be found in the plugin settings.

Replacements

Regex replacements are also available to do rules-based replacements on the formatted text. Useful examples:

  • Normalize spaces: \s{2,} -> ' '
  • Remove parenthetical text: \s*\([^)]+\) -> (empty)
  • Truncate after n chars (link only): (?<=(?<!\\)\[)(.{0,n}\S*?)\s.*?(?=(?<!\\)\]) -> $1...
  • Trim whitespaces: ^\s+|\s+$ -> (empty)
92%
HealthExcellent
ReviewSatisfactory
About
Format pasted links with metadata for YouTube, Twitter/X, Reddit, YouTube Music, GitHub, image links and regular URLs, making the first [] the clickable link. Use variables (title, url, channel, duration, views, upload_date, description, timestamp), date formats, regex replacements and domain blacklists to customize output.
LinksFormattingAutomation
Details
Current version
1.4.5
Last updated
Last week
Created
Last year
Updates
15 releases
Downloads
1k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
GitHub Sponsors
Author
ccmdiccmdi
github.com/ccmdi
GitHubccmdi
  1. Community
  2. Plugins
  3. Links
  4. Smart Link Formatter

Related plugins

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.

Advanced URI

Control everything with URI.

Waypoint

Easily generate dynamic MOCs in your folder notes using waypoints. Enables folders to show up in the graph view and removes the need for messy tags!

Auto Link Title

Automatically fetches the titles of links from the web.

Link Embed

Convert URLs in your notes into embeded previews.

PodNotes

Write notes on podcasts with ease.

Note Linker

Automatically find and create new links between notes.

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.