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

Image2Local

CozeBoyCozeBoy223 downloads

Save online images, base64 data, and bare image URLs in notes to local storage with configurable paths, batch conversion, and right-click support.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Save online images, base64 data, and bare image URLs in your Obsidian notes to local storage, and replace them with markdown references automatically.

Languages: English | 中文

Features

  • Auto-save — Detect and save remote images and base64 data when you paste or save a note
  • Flexible storage paths — Relative to note, relative to vault root, vault absolute path, or system absolute path (outside vault)
  • Markdown references — Replace sources with ![alt](path) after saving
  • Right-click menu — Save a single image or batch-save all saveable images in the current note
  • Batch conversion — Detect markdown images, HTML <img> tags, and bare image URLs
  • Base64 support — Save base64 images via right-click, batch mode, or auto-save
  • i18n — Chinese and English settings UI
  • Built-in User-Agents — 10 browser user-agents with optional random rotation for downloads

Installation

From Obsidian Community Plugins

  1. Open Settings → Community plugins
  2. Turn off Restricted mode if needed
  3. Click Browse, search for Image2Local, and install
  4. Enable the plugin

Manual installation

  1. Copy this folder to <vault>/.obsidian/plugins/image-to-local/
  2. Run npm install && npm run build to generate main.js
  3. Enable Image2Local under Settings → Community plugins

Usage

Auto-save

  1. Open Settings → Image2Local
  2. Enable Enable auto-save
  3. Paste or save notes containing remote images or base64 data

Manual save

  • Right-click on an image (Live Preview / Reading mode) → Save image to local
  • Right-click in editor → Batch save all images in note
  • Command palette → Batch save images in current note

Storage path modes

Mode Description
Relative to note Default: <note-folder>/image_files/
Relative to vault root e.g. image_files/ at vault root
Absolute (within vault) e.g. attachments/images/
System absolute path e.g. /Users/you/Pictures/image_files (desktop only)

When using a system path outside the vault, markdown references use file:// URLs.

Supported sources

  • Markdown: ![alt](https://example.com/image.png)
  • Base64: ![alt](data:image/png;base64,...)
  • HTML: <img src="https://example.com/image.png">
  • Bare URLs: https://example.com/image.png

Network use

This plugin downloads images from URLs that you put in your notes. It uses Obsidian's requestUrl API to fetch remote images when saving.

  • No telemetry or analytics is collected
  • No data is sent to third parties except the image hosts you choose
  • User-Agent headers are used only to improve download compatibility

Platform notes

  • Desktop: Full feature set, including system absolute paths (uses Node.js fs)
  • Mobile: Not supported (isDesktopOnly: true) because the plugin uses Node.js file system APIs for external storage

Documentation

  • Usage guide (English)
  • 使用说明 (中文)
  • Publishing guide (中文)

Development

npm install
npm run dev    # watch mode
npm run build  # production build

Release

npm run build
git tag 1.0.0
git push origin 1.0.0

If GitHub Actions is configured, pushing a tag creates a release with main.js and manifest.json attached.

License

MIT — see LICENSE

HealthExcellent
ReviewSatisfactory
About
Save remote images, base64 data, and bare image URLs to local files and automatically replace them with Markdown image links. Choose relative or absolute storage (including system paths outside the vault) and run single or batch saves via right-click or commands. Detect Markdown images, HTML <img> tags, and bare URLs.
ImagesAttachmentsAutomation
Details
Current version
1.0.3
Last updated
2 months ago
Created
2 months ago
Updates
4 releases
Downloads
223
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
CozeBoyCozeBoycozeboy
GitHubcozeboy
  1. Community
  2. Plugins
  3. Images
  4. Image2Local

Related plugins

Paste image rename

Rename image after pasting, support name pattern and auto renaming.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Local Images Plus

A reincarnation of Local Images to download images in Markdown notes to local storage.

Pixel Perfect Image

Pixel perfect 100% image resizing, copy to clipboard, show image in Finder/Explorer, and much more.

Image Context Menus

Image context menus (mostly on right click): Copy to clipboard, Open in default app, Show in system explorer, Reveal file in navigation, Open in new tab.

Attachment Management

Customize attachment path, auto-rename attachments, etc.

Image auto upload

Upload images from your clipboard by PicGo.

Imgur

Upload images from your clipboard to imgur.com and embeds uploaded image to your note.

X

NoteTweet

Post tweets and threads to X (Twitter) directly from your notes.

BRAT

Easily install a beta version of a plugin for testing.