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


How to Use a Bookmarklet

  1. Paste your JavaScript into the code area above (or pick an example).
  2. Click Convert — the tool wraps your code in a javascript: URI.
  3. Drag the generated button to your browser’s bookmark bar.
  4. 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.