Rishi Shah

Nov 19, 2025 • 2 min read

Smart Clipboard

A tiny tool that fixes messy copied text so you don’t have to.

Smart Clipboard

Most of us copy things from the internet all day. Articles, notes, code, links, research, chats, random screenshots turned into text. It should be simple, but it never is. You paste something into your document and suddenly there are emojis you didn’t want, smart quotes that break code, tracking junk sitting inside your URLs, weird spacing everywhere, and bullets that refuse to line up.

Smart Clipboard solves that problem in one go. It’s a small client side utility that cleans your text the moment it is pasted. No dependencies. No build tools. Just drop it into your project and it works.

Smart Clipboard is made for writers, developers, students and anyone who wants clean text without slowing down. You paste. It cleans. You move on.

What it fixes

The tool handles all the annoying things that show up when copying from the web:

  • Removes tracking junk from URLs like utm tags, fbclid and similar clutter

  • Converts HTML into clean Markdown

  • Normalizes bullets so they behave like a proper list

  • Replaces smart quotes with straight quotes

  • Strips emojis from the text

  • Cleans extra spaces and odd formatting

  • Runs fully in the browser with no external setup

It’s the kind of small utility that quietly makes your workflow feel smoother. After using it for a while you stop noticing it, because you stop noticing any mess.

How it works

Using it inside your project takes one line.

import SmartClipboard from "./smart-clipboard.js";

const result = SmartClipboard.process("Paste your text here");
console.log(result.cleaned);

If you want to copy cleaned text back into the clipboard, you can do that too.

await SmartClipboard.copy("text to copy");

Everything runs locally in the browser. Nothing leaves the page.


Try it live

You can test the tool in your browser and see what it does in real time.
Paste anything and watch the output clean itself instantly.

👉 Live demo: https://codesandbox.io/p/sandbox/4pztv3


What comes inside the repo

This project is intentionally simple and transparent. The gist includes:

  1. Smart-Clipboard
    Title and metadata

  2. README.md
    Full documentation

  3. smart-clipboard.js
    The main module that powers everything

  4. TESTS.md
    Official test sheet that helps you verify each feature

  5. LICENSE
    MIT license

Everything is open, readable and easy to use in any project.

Full gist link:
https://gist.github.com/byrishi/c53c3fcbd6f2e071d01ec6fba372a7b0


Why I built this

I copy a lot of text. Notes. Research. Headlines. Code. Ideas from the web. Every time I pasted anything I had to clean it by hand. Remove tracking tags. Replace fancy quotes. Fix spacing. Remove odd bullets. This tiny tool grew out of that daily pain.

Nothing fancy. Just something that should exist, so I made it.

If clean text makes your workflow easier, this tool will feel natural from the first use.

Join Rishi on Peerlist!

Join amazing folks like Rishi and thousands of other builders on Peerlist.

peerlist.io/

It’s available... this username is available! 😃

Claim your username before it's too late!

This username is already taken, you’re a little late.😐

0

8

0