Bookmarklet Maker & JavaScript Bookmarklet Generator

Convert JavaScript code into a browser bookmarklet with automatic minification, URL encoding, snippet wrapping, and one-click copying.

Quick Start Presets

Create a Bookmarklet

Paste JavaScript, keep the minify option on, and copy the generated URL into a new browser bookmark.

JavaScript to Bookmarklet

The generator wraps your snippet in an IIFE and encodes it so the bookmark can run on the current page.

Test Before Saving

Use the sandbox after generating your bookmarklet if you want to test behavior before adding it to your toolbar.

Tips for Better Bookmarklets

  • • Keep your code concise and focused on a single task
  • • Test your JavaScript in the browser console first
  • • Use void(0) to prevent page navigation
  • • Check for existing elements before modifying them
  • • Consider different website layouts and structures

Advanced Features

  • • Automatic code minification for smaller URLs
  • • Proper URI encoding for special characters
  • • IIFE wrapping to prevent global variable conflicts
  • • Quick preset loading for common use cases
  • • One-click copying for easy bookmark creation

Need Help Getting Started?

Check out the step-by-step guide, testing sandbox, and example bookmarklets.