Save 50% on Marqly yearly — now $48/year. Upgrade →

Turn JavaScript into a bookmarklet

Paste a small script, generate the bookmark URL, then drag the result to your bookmarks bar. Your code stays local.

A tiny tool that lives in the bookmarks bar

Bookmarklets are useful for page-specific actions: copying a formatted citation, toggling a reading view, extracting selected text, or opening the current URL in another service. They require no extension installation and keep the script inside a normal browser bookmark.

Security matters

Bookmarklets run with access to the current page. Review code before installing it, avoid snippets that load remote scripts, and never run an unknown bookmarklet on a page containing sensitive information.

Frequently asked questions

What is a bookmarklet?

A bookmarklet is a browser bookmark whose URL starts with javascript:. Clicking it runs a small script on the page you are viewing instead of opening another website.

How do I install the generated bookmarklet?

Drag the generated button to your bookmarks bar. If drag-and-drop is unavailable, copy the bookmarklet URL and paste it into the URL field of a manually created bookmark.

Is the code executed by this generator?

No. This page only packages and displays the code. The generated button is prevented from running here; it executes only when you save it as a bookmark and click it on another page.

Are bookmarklets safe?

A bookmarklet can read and change the current page, so only use code you understand and trust. Some websites block bookmarklets with strict security policies.

← All free tools