Bookmarklet Code Builder - Online Convert JS to Bookmark
Write a JavaScript snippet and get a ready‑to‑drag bookmarklet link. With minification and encoding. Easy browser tools.
UD5 Toolkit
Paste your JavaScript code below and instantly get a ready-to-use bookmarklet. Drag it to your bookmarks bar or copy the encoded link.
javascript: followed by encoded JavaScript code.
javascript: URL into the URL field.encodeURIComponent() so the
browser can properly interpret the JavaScript when the bookmark is clicked. Without encoding,
these characters could break the URL structure or cause syntax errors. This tool handles all
encoding automatically.
(function(){ ... })();. This creates a private scope, preventing your variables
from leaking into the page's global scope and avoiding conflicts with existing scripts.
It also ensures the return value of your code doesn't cause the browser to navigate away.
We strongly recommend keeping this option enabled for all bookmarklets.
javascript: code. On
Android Chrome, you can use the address bar: type the bookmarklet's name,
and Chrome will suggest the bookmarklet. Some mobile browsers have limited support, so
always test your bookmarklet on target devices.
<script> tag into the page to load external libraries before executing
dependent code. However, this adds complexity and delay. For most bookmarklets,
vanilla JavaScript is recommended since modern browsers support ES6+
features natively. Keep bookmarklets self-contained for best reliability.
<a href="javascript:...">Drag me</a>
that users can drag to their bookmarks bar—exactly how our "Drag to Bookmarks Bar" button works.
Write a JavaScript snippet and get a ready‑to‑drag bookmarklet link. With minification and encoding. Easy browser tools.
Design a fully styled scrollbar with colors, width, and border radius. Get the CSS for Chrome and Firefox.
Paste a URL or HTML to detect known vulnerable JavaScript library versions. Quick security audit. Client‑side only.
Type JavaScript expressions and see output like a real browser console. Supports console.log, error, warn. Use for quick testing without DevTools.
Make your JavaScript code more readable with this online beautifier. Format and indent JS automatically. Works entirely in your browser, protecting your code privacy.
Test the new HTML popover attribute for creating accessible tooltips, menus, and dialogs without JavaScript. Copy code snippets.
Add player names and tap +/- to track scores. Custom starting points. Works for any game.
Design a pure CSS tooltip with custom text, position (top/bottom/left/right), and arrow. Copy the clean code.
Play the classic Snake game inside your browser. Arrow keys to move, eat the apple, grow longer. High score tracked locally.
Generate a horizontal Code‑128 barcode from any string. Download as PNG or SVG. Works offline. For inventory.
A visual guide to common copy‑editing and proofreading symbols. Click a mark to see its meaning. For writers.
Convert any integer up to 3999 into its Roman numeral representation and vice versa. Quick and accurate. Local.
Select a ratio (1.25, 1.333, 1.5) and a base size to generate a full typographic scale for h1‑h6. Copy CSS variables.
Convert numbers to Roman numerals and decode Roman numerals back to numbers. Supports up to large values. A fun educational tool running entirely in your browser.
Write and store encrypted daily journal entries directly in your browser's localStorage. Export as TXT. No sign-up, fully private.
A big button that triggers a colourful confetti cannon full‑screen. Use it to celebrate small wins. Pure joy.
Style a drop cap using the initial‑letter property. Set size and sink. Modern alternative to pseudo‑element hacks.
Style a drop cap using the initial‑letter property. Set size and sink. Modern alternative to pseudo‑element hacks.
Set a short timer with a themed emoji animation (e.g., pizza cooking). A playful visual countdown.
Apply user‑select: none, text, all and see how it affects selection. Copy the CSS snippet for your UI elements.
Test overscroll‑behavior: contain to prevent background scroll or pull‑to‑refresh. See the effect in a live demo.
Calculate tips and split bills easily. Adjust tip percentage and number of people. Perfect for dining out. All computations happen on your device.
Compute Poisson probabilities for a given mean rate. Ideal for call centers, traffic analysis. Instant chart.
Choose label type and get the best technique (baking soda, steam, milk) to remove it intact.
Connect a game controller and see every button press, axis movement, and vibration test. Uses the Gamepad API.
Convert any date into Roman numerals (day‑month‑year) for tattoos or special occasions. Clean and local.
Paste long text and split it into 2, 3, or 4 balanced CSS columns. Preview and copy HTML/CSS. For magazine layouts.
Convert any date into Roman numerals (day‑month‑year) for tattoos or special occasions. Clean and local.
Write daily notes encrypted with a password. All data stored in your browser. Export as encrypted file. True privacy.
Define min and max font sizes and viewport widths. Generate a complete fluid type scale using CSS clamp() for all headings.