Johan Sanneblad2k downloadsRemoves tracking from links, fetches page titles, and cleans up pasted text from AI chats, terminals and PDF documents.
Read in your language: English • العربية • Deutsch • Español • فارسی • Français • Bahasa Indonesia • Italiano • Nederlands • Polski • Português • Português (Brasil) • Русский • ไทย • Türkçe • Українська • Tiếng Việt • 日本語 • 한국어 • 中文简体 • 中文繁體
Stop fixing formatting after every paste! Better Paste finally lets you copy images from Safari to Obsidian, it strips tracking parameters from URLs, fetches page titles, and cleans up AI-generated text. Your own regex snippets run on every paste too. Just paste, and the plugin handles the rest.
If you love using Better Paste, please consider ☕️ Buying me a coffee or Sponsor on GitHub ❤️.
Nine examples. Some run on every paste, others are commands you run when you need them.
Write your own find and replace rules with regex and they run on every paste. This one removes Perplexity's citation markers:
The fix shipped last week[1][2] and rollout begins today[3].
becomes
The fix shipped last week and rollout begins today.
Ready-made snippets to import are on the wiki: convert ChatGPT math, remove bold from headings, collapse runs of blank lines, and more. How a rule is written is in section 3.5.
Copy an image in Safari, paste it into Obsidian, and you get a web link instead of the image. Annoying! Better Paste saves the actual image into your vault:

becomes
![[skyline-8f21a.jpg]]
Links you copy from newsletters and social apps drag a lot of tracking junk along. Better Paste cleans it off:
https://www.theverge.com/2026/1/9/story?utm_source=newsletter&utm_medium=email&fbclid=IwAR2x9
becomes
https://www.theverge.com/2026/1/9/story
Paste a bare URL and it turns into a Markdown link with the real page title:
https://obsidian.md
becomes
[Obsidian - Sharpen your thinking](https://obsidian.md)
The URL is pasted right away and updates when the title arrives, so nothing blocks.
Reddit, YouTube, TikTok and Loom block ordinary page lookups, so their titles are fetched from each site's own embed service instead.
Copy a nested list, paste it deep inside another list, and the old indentation comes along, breaking the tree apart. Better Paste reindents the whole list to fit the item you paste on. This:
- [ ] Trip planning
- [ ] Book hotel
- [ ] Pack
- [ ] Chargers
pasted onto the empty item in
- Projects
- Summer
-
becomes
- Projects
- Summer
- [ ] Trip planning
- [ ] Book hotel
- [ ] Pack
- [ ] Chargers
It works with bullets, numbered lists and checkboxes, however deep the destination is, and whether the copy uses tabs or spaces. A paste that is not purely a list, or does not land on a list item, comes through exactly as before. Rich copies from web pages go through Obsidian's HTML conversion instead.
Terminals break long lines at the window edge. Escape codes are stripped on every paste, and when you select the pasted output and run Clean up terminal output, the lines are joined back together:
npm warn deprecated [email protected]: This module is not supported and leaks memory. Do
not use it. Check out lru-cache instead.
becomes
npm warn deprecated [email protected]: This module is not supported and leaks memory. Do not use it. Check out lru-cache instead.
PDFs wrap paragraphs into short lines and break words with hyphens. Select the pasted text and run Clean up PDF text:
The findings suggest that long-term expo-
sure has a measurable effect on the out-
come in both groups.
becomes
The findings suggest that long-term exposure has a measurable effect on the outcome in both groups.
Ligatures like fi become real letters too, so search finds the words again.
The command opens a dialog with a preview, so you see the result before it lands. Two switches handle what no rule can guess: remove page numbers, or join everything into one paragraph. Your picks are remembered for the next time.
Chatbot text comes with curly quotes, long dashes and invisible characters. The invisible ones are removed on every paste, and with Quotes and Dashes turned on the rest becomes plain text too:
“It works,” she said — finally.
becomes
"It works," she said - finally.
Prefer your commas outside the quotation marks? Select the text and run Move commas outside quotes:
She called it "finished," then left.
becomes
She called it "finished", then left.
Move commas inside quotes goes the other way.
Here are the settings you will actually look for.
bp: true (see section 4).bp): the per-note switch from section 4. Rename it if it collides with something in your vault, or leave it blank to turn it off.image.png.{{name}}-YYYY-MM-DD. You can also use {{noteName}} for the note name, {{property:xyz}} for any frontmatter property, and {{counter}} or {{counter:2}} for a number that counts up. A screenshot has no source name, so it gets Pasted image plus a timestamp, the same name Obsidian gives it. With attachName: demo in a note and the format {{property:attachName}}-{{counter}}, pasted screenshots become demo-1.png, demo-2.png, demo-3.png. The format applies to every image Better Paste saves, screenshots included, whether or not web saving is on.![[photo.jpg#invert|400]]. Define your own comma-separated lists like 200, 400, 600 and invert, invertW, then apply one value everywhere or pick Ask on every paste to choose in a small dialog each time (Enter applies, and your last pick is preselected). Classes like #invert are defined by themes and CSS snippets, for example to invert an image in dark mode. The Image width property (default image-width) sets a per-note width, see section 4.Alt text survives the download, and if a download fails the original link stays in your note. Images over 50 MB or slower than 30 seconds are left as links. A note with its own image-width property (see section 4) overrides the size setting.
https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=PLxAbC123&si=8f2a1c&utm_source=share&t=42
https://www.amazon.com/dp/B0CHX1W1XY/ref=sr_1_3?crid=2ABCDE&keywords=usb+hub&qid=1735689600&sr=8-3
https://www.google.co.uk/search?q=obsidian+plugins&client=safari&sca_esv=9f1&sourceid=chrome
becomes
https://www.youtube.com/watch?v=dQw4w9WgXcQ&list=PLxAbC123&t=42
https://www.amazon.com/dp/B0CHX1W1XY/ref=sr_1_3?keywords=usb+hub
https://www.google.co.uk/search?q=obsidian+plugins
A removal looks like this:
fbclid
mine.example | source, ref
fbclid removes that parameter on every site. mine.example | source, ref removes source and ref on mine.example and its subdomains, while every other parameter stays. And google.* matches google.com and google.se alike. You can see every built-in removal, and updates to that file arrive with plugin releases. Suggest your removals opens betterpaste.md with your list filled in. Review it there, then open a draft in your email app. Cryptographically signed links stay unchanged. Shared files and gift articles keep their access parameters.
Start a line with ! to turn off the built-in removals for one site:
!youtube.com
“don’t” becomes "don't". Off by default, so your typography is kept until you opt in.s/find/replace/flags. Lines starting with # are comments:# Remove Perplexity citations
s/\[\d+\]//g
Add bp: false to a note's frontmatter and Better Paste leaves that note alone. Perfect for logs and transcripts:
---
bp: false
---
It works the other way too: bp: true cleans a note even when Clean up every paste is off.
| Clean up every paste | No bp property |
bp: true |
bp: false |
|---|---|---|---|
| On | cleaned | cleaned | left alone |
| Off | left alone | cleaned | left alone |
And image-width sets the width of images pasted into that note:
---
image-width: 400
---
Images come out as ![[picture.png|400]], Obsidian's own size syntax. 400x300 works too.
Nine commands, ready for your own hotkeys (Settings, Hotkeys). The ids are for URI schemes and plugins like Commander, prefixed better-paste:.
paste): paste through the rules, even in a note that opted out.paste-raw): paste exactly what is on the clipboard.selection-clean): run the text rules on selected text.selection-clean-terminal): rejoin wrapped lines, remove leading indentation and turn • bullets into Markdown lists in the selection. On demand, because only you know the text came from a terminal.selection-clean-pdf): rejoin the short lines a PDF layout makes, repair words broken by hyphens and expand ligatures in the selection. A dialog previews the result and offers page number and paragraph options.selection-run-snippet): pick a snippet and apply it to the selection, even one that is switched off for pasting.selection-commas-inside) and Move commas outside quotes (selection-commas-outside): comma style next to closing quotes, applied to the selection.toggle-cleanup): flip the master switch."[[skyline-8f21a.jpg]]". Obsidian Bases can show that as a cover image, and a local copy works offline.Better Paste speaks 21 languages: Arabic, Chinese (Simplified), Chinese (Traditional), Dutch, English, French, German, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Portuguese (Brazil), Russian, Spanish, Thai, Turkish, Ukrainian and Vietnamese. It follows the language Obsidian is set to (switching takes effect after a restart).
Better Paste runs locally and makes network requests in exactly three cases:
No telemetry, no analytics, and nothing is ever uploaded. Settings live in .obsidian/plugins/better-paste/data.json and stay in your vault.
Every release is checked with TypeScript, ESLint with the official Obsidian ESLint plugin, Stylelint, Prettier, Vitest and a dead code check. Warnings fail the build.
I'm Johan Sanneblad. I have a PhD in Software Development and have worked with innovation development for companies like Apple, Electronic Arts, Google, Microsoft, Lego, SKF, Volvo Cars, Volvo Group and Yamaha. I also build Notebook Navigator, the most popular file explorer plugin for Obsidian.
Feel free to connect with me on LinkedIn!
Open an issue on the GitHub repository. For paste bugs, the most useful thing you can include is what was on your clipboard: open https://dynalist.io/clipboard in the app you copied from, paste there, and include what it prints.
Pull requests are not accepted; contribute ideas as feature requests instead. See CONTRIBUTING.md for details.
GNU General Public License v3.0. See LICENSE.