Obsidian Web Clipper

Browser extension (2024)

Web Clipper is an open source browser extension that saves articles and pages from the web as Markdown files in Obsidian.

Get the extension

Clipper templates

Web Clipper makes it easy extract metadata and content from pages using templates. For example, you can save movies, books, recipes, and places to Obsidian.

I created templates that work with my personal vault. You can download them or look at the code on GitHub. I made templates for IMDB, Letterboxd, Goodreads, arXiv, YouTube, and more. They provide useful examples of the syntax documented here.


Bookmarklet (2021)

I originally created Obsidian Web Clipper as a bookmarklet in 2021. The bookmarklet is still available below for archival purposes, or if you prefer not to install browser extensions.

Bookmarklets are powerful bookmarks that allow you to run scripts within web pages. However they do come with limitations. They’re harder to customize, and some websites block the execution of remote scripts. The browser extension solves some of these issues, but may not be necessary for your use case.

Demo

Installation

Drag the “Clip in Obsidian” link below into your bookmarks. Then click the bookmark to clip the page. This will clip the page to your currently open vault and insert metadata about the article.

Clip in Obsidian

Usage

By default, clicking the bookmarklet creates a new Obsidian file from the main body of the article, similar to Readability view. Alternatively you can choose to create a file from a selection, by either selecting all (CMD+A), or just a portion of the page.

Downloading images for offline use

Any images in the content will be embedded as external references. This reduces storage in your vault but has two downsides: first, you need to be online to see the images, and second, those images will no longer resolve if the images are removed from the site.

If you want to download images locally you can use the Local Images plugin which will download the images and save them to your vault so they are always accessible.

Customization

If you want to customize the file path and template for your clippings, you will need to edit the source code .

Optional variables can be found at the top of the code, and the template at the bottom. If you make changes I recommend using Bookmarklet Maker to minify and URI-encode the bookmarklet.

Troubleshooting

This bookmarklet may not work on all websites and browsers. You can troubleshoot issues by opening the Developer Console in your browser and checking if any errors appear when you click the bookmarklet.

The most common error is that a website or the browser itself is blocking third party code execution. This is commonly due to the connect-src Content Security Policy (CSP) used by some websites.


  • Tidy Reader my bookmarklet for making web pages more readable.
  • Tidy URL my bookmarklet that cleans up URLs to make them more shareable.