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
Bookmarklet Output
Characters: 0
Size: 0 B
Status: —
Ready-to-Use Examples
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()orconsole.log()to debug output during testing.
Related Tools
- Code Minifier — Minify JS, CSS, and HTML files.
- URL Encoder — Encode/decode URL components manually.
