
Bookmarklet Maker
A bookmarklet is a bookmark that runs JavaScript on any page. Paste your JS code below, click Convert, drag it to your bookmark bar, and it works instantly — no extensions needed. JavaScript Code Paste your JavaScript here Minify (remove comments & whitespace) URI encode Wrap in IIFE (void function(){...}()) Convert to Bookmarklet Clear Test in Console Bookmarklet Output Copy Characters: 0 Size: 0 B Status: — Drag this button to your bookmark bar: Bookmarklet (Show your bookmark bar: Ctrl+Shift+B / Cmd+Shift+B) Ready-to-Use Examples Highlight Links Dark Mode Toggle Font Size Changer Print Page Scroll to Top Word Count Copy Page URL+Title Related Tools: Code Minifier URL Encoder How to Use a Bookmarklet Paste your JavaScript into the code area above (or pick an example). Click Convert — the tool wraps your code in a javascript: URI. Drag the generated button to your browser’s bookmark bar. Visit any page and click the bookmark — your script runs instantly. Tips Minify strips comments and whitespace, keeping the URL short. IIFE wrap prevents your variables from polluting the page’s global scope. URI encode is required for special characters like spaces, quotes, and ampersands. Most browsers cap bookmarklet URLs at ~2 KB — keep scripts lean. Use alert() or console.log() to debug output during testing. Related Tools Code Minifier — Minify JS, CSS, and HTML files. URL Encoder — Encode/decode URL components manually.








