Bookmarklet Builder

Paste any JavaScript, pick a name, and get a javascript: URL you can drag to your bookmarks bar. Live length meter, four built-in helpers ($, $$, qs, DOMContentLoaded), a conservative minifier, and a sandboxed "Run in iframe" test runner. Pure client-side, no upload.

0 / 80
0 / 240
Minify is conservative: it skips content inside string literals and common regex literals. Turn it off if your script uses template literals with embedded expressions.
Inject helper:

My Bookmarklet What it does (one line).
Length — chars
Show the raw javascript: URL
 
  1. Type or paste your JavaScript in the editor above.
  2. Set a name and an optional one-line description.
  3. If you want a shorter URL, tick "Minify".
  4. Drag the Your bookmarklet link straight to your browser's bookmarks bar. Or click Copy link HTML and paste it into a page.
  5. Click the saved bookmark on any page to run the script in that page's context.

The URL meter turns orange over 2,000 characters and red over 8,000 — most browsers tolerate up to about 32,000 but start to behave inconsistently above that.