by anonymouse66
Exports the active note as a single markdown file with every image embed inlined as a base64 data URI. Vault note stays untouched.
Export the active note as a single, self-contained markdown file with every image embed inlined as a base64 data URI one command, one native save dialog, done.
Features
- Resolves every image embed in the note (
![[image.png]]andsyntax) via Obsidian's metadata cache - Inlines each one as a
data:image/<type>;base64,...URI in place of the embed - Native OS "Save As" dialog, defaults filename to the note's title
- Vault note is never modified only the exported copy is written
- Supports png, jpg/jpeg, gif, webp, bmp, svg
Why I built this
I use Obsidian mostly to prepare writeups for the machines and challenges I solve. I publish these writeups on my website, which uses a ๐ ๐ผ๐ป๐ด๐ผ๐๐-๐ฏ๐ฎ๐ฐ๐ธ๐ฒ๐ฑ ๐๐ ๐ฆ for storage. Storing images directly in ๐ ๐ผ๐ป๐ด๐ผ๐๐ requires a lot of space, and a few images are enough to blow past a 500MB tier.
Therefore, I designed my website to intercept base64 data URIs in uploaded markdown in a public GitHub repo and rewrite the links to a ๐ท๐๐๐ฒ๐น๐ถ๐๐ฟ ๐๐๐ก ๐จ๐ฅ๐ before the markdown ever touches the database.
The missing piece was getting from "writeup with normal image embeds in Obsidian" to "one flat markdown file with base64 inlined" without doing it by hand. So I built a plugin for it. Hope its useful for y'all.
Installation
From Community Plugins
Settings โ Community Plugins โ Browse โ search "Export as Base64 MD" โ Install โ Enable.
Manual / BRAT
- Install the BRAT plugin.
- Command palette โ
BRAT: Add a beta plugin for testing. - Paste this repo's URL.
- Enable "Export as Base64 MD" under Installed Plugins.
Usage
- Open the writeup you want to export.
- Run Export active note from the command palette (
Ctrl/Cmd+P). Want a hotkey? Bind one yourself in Settings โ Hotkeys. the plugin doesn't ship a default, so it won't conflict with anything you've already set. - Select a destination in the native save dialog.
- A flat
.mdfile with all images inlined lands where you choose.
Notes
- Desktop only uses
@electron/remoteand Node'sfs, unavailable on mobile. - Broken/unresolvable embeds are left as-is rather than failing the whole export.
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.