CORS Header Tester – Check Cross‑Origin Accessibility
Enter a URL and the tool performs a CORS preflight request, showing which origins are allowed. Debug why your frontend cannot access an API.
UD5 Toolkit
Welcome to the Selection & Range API Demo! This is an interactive playground where you can explore how the Selection and Range APIs work in the browser.
Try selecting some text with your mouse or keyboard. You can also click this link to see how anchor and focus behave. The contenteditable area allows you to modify text and observe how the DOM structure changes.
"The Selection API represents the user's selection, while the Range API provides granular control over document fragments."
Here is a bold red text and some inline code for variety. You can also find highlighted spans within the content.
Use presets or define a custom range to programmatically set the selection.
These operations modify the content. Use with care.
window.getSelection() and reflects what the user sees highlighted on screen. The Range API, on the other hand, represents a contiguous fragment of a document—defined by a start and end boundary. A Selection can contain multiple Ranges (though in practice, most browsers support only one). Use Selection for reading user intent and Range for precise DOM manipulation.
window.getSelection().toString() to get the plain text of the current selection. For more detailed information, access the Range via window.getSelection().getRangeAt(0) to inspect start/end containers, offsets, and bounding rectangles.
selection.isCollapsed or range.collapsed to determine this. Collapsed ranges are useful for inserting content at a specific point.
range.setStart(node, offset) and range.setEnd(node, offset), then apply it to the Selection: const sel = window.getSelection(); sel.removeAllRanges(); sel.addRange(range);. The node can be a text node (offsets are character positions) or an element node (offsets are child node indices).
DocumentFragment that you can re-insert elsewhere—useful for cut/paste or drag-and-drop functionalities. Both methods collapse the range after execution.
document.onselectionchange event (or use document.addEventListener('selectionchange', callback)). This event fires whenever the Selection object changes. Inside the handler, check window.getSelection() to get updated details. Note: this event can fire very frequently—debounce if needed.
selection.addRange() without removing existing ones), while Chromium-based browsers always replace. For consistent behavior, always call selection.removeAllRanges() before adding a new range.
Enter a URL and the tool performs a CORS preflight request, showing which origins are allowed. Debug why your frontend cannot access an API.
A minimalist countdown timer that overlays on your screen while recording tutorials or demos. Perfect for keeping videos concise without editing.
Hover over tiles to see every CSS cursor value in action. Quick visual reference for choosing the right UI feedback.
Compress and decompress text using the browser's native Compression Streams API. See the binary output size.
Query the permission state of camera, microphone, geolocation, and more. See the response and learn the API.
Drop files onto a zone and see a preview with name, size, and type. Copy the JavaScript pattern for your site.
Scroll a container and see how sticky elements behave. Adjust top, bottom, and scroll margins. Copy the code.
Unified input demo: see pressure, tilt, and type from any pointer. Compare pointerType values. Essential for drawing apps.
Test the experimental Translation API to translate text between languages directly in the browser, without cloud calls. Check support and copy the JavaScript starter.
See every HTML input type in one page. Check browser support and styling. Copy sample markup. Quick frontend reference.
Decode an image progressively using the ImageDecoder API. See partial results and metadata. Modern alternative to <img>.
Decode individual video frames from a local file using the VideoDecoder API. Step through frames. Cutting‑edge browser feature.
Toggle scrollbar‑gutter: stable to reserve space for the scrollbar and avoid content jumps. Visual demo with two columns.
Test sharing multiple files (images, PDFs) using the Web Share API. Check if the browser supports file sharing. Demo page.
Connect to a BLE device and read its Battery Service characteristic. See the charge level in a gauge.
Request a USB device and communicate with it using the Web USB API. See vendor and product IDs. Experimental.
Request HID devices and list them. Read input reports and send output. For custom hardware and controllers.
Connect to a serial device (Arduino, etc.) via the Web Serial API. Send and receive text. No native app needed.
Demonstrate how the Web OTP API automatically reads one‑time codes from SMS (mobile). Simulation with a fake SMS input.
Request and release a screen wake lock to keep the device awake. See the lock state in real time. Perfect for recipes or presentations.
Connect a gamepad and see all button presses and axis movements visually. Check that every input is detected correctly.
Trigger different vibration patterns on mobile devices. Test if your phone supports haptic feedback. Simple demo.
Check notification permission, request it, and send a test notification. Verify icon, body, and tag. Debug web push.
Check current screen orientation and test the lock API. Useful for mobile web apps. Demo with code.
Test the Fullscreen API: request fullscreen on a colored div, detect changes, and copy the JavaScript boilerplate.
Experiment with the Async Clipboard API: read/write text and images from the clipboard. Verify permissions and see demo code.
Test the Web Share API by sharing text, links, and files directly from the browser. Check compatibility and see example code.
Enter an API URL and quickly check its HTTP status code and response time. See response headers and body. Browser fetch.
Find safe mixing ratios for the classic elephant toothpaste demonstration. Volume adjustments for different container sizes.
Execute GraphQL queries against any endpoint with variables and headers. Explore schema via introspection. All requests made directly from your browser.