HTML Comment Extractor/Remover - Online Strip Comments
Paste HTML code and extract all comments or remove them completely. See a list of comments found. Clean your markup.
UD5 Toolkit
Extract, list, and analyze all data-* attributes from any HTML snippet or live URL. Instantly view attribute names, values, CSS selectors, and JavaScript dataset keys.
data- that allow you to store extra information on HTML elements without using non-standard attributes or hacks like class or rel. Introduced in HTML5, they provide a clean, valid way to embed arbitrary data. For example, <div data-user-id="42" data-role="admin">. JavaScript can access them via the element.dataset API (e.g., element.dataset.userId returns "42"), and CSS can target them with attribute selectors like [data-role="admin"].
data-. The results are displayed in a structured table showing the element tag, full attribute name, attribute value, a ready-to-use CSS selector, and the corresponding JavaScript dataset camelCase key. You can paste HTML directly or fetch raw HTML from a URL (subject to CORS policies).
getAttribute('data-user-name') returns the raw string value exactly as written in the HTML, preserving the original hyphenated attribute name. dataset.userName uses the camelCase conversion (hyphens become uppercase letters) and returns the value through the DOM's dataset interface. Generally, dataset is more convenient for JavaScript, while getAttribute is useful when you need the exact original attribute name or when dealing with non-standard casing. Note that dataset automatically converts values: data-active="" becomes string "" (not boolean true). Use hasAttribute('data-active') to check for boolean-style presence.
data-, followed by at least one character. The name can contain lowercase letters (a-z), digits (0-9), hyphens (-), and underscores (_). Uppercase letters are technically allowed in the HTML but will be lowercased by the DOM parser. Colons (:) and periods (.) should be avoided as they have special meanings in some contexts. When accessed via dataset, hyphenated names are converted to camelCase: data-my-custom-attr becomes dataset.myCustomAttr. Leading numbers after data- are valid in HTML5 but may cause issues with older browsers.
data-bs-toggle, data-bs-target, data-bs-dismiss). jQuery commonly stores plugin state via data(). Alpine.js uses x-data (inspired by data attributes). HTMX uses attributes like hx-get, hx-post for AJAX. Stimulus (from Basecamp) uses data-controller, data-action, data-target. Turbo uses data-turbo-frame. Understanding what data attributes a framework uses helps in debugging, auditing, and learning how a website is built.
[data-role] selects all elements with the attribute regardless of value; [data-role="admin"] matches exact values; [data-id^="user-"] matches values starting with "user-"; [data-id$="-active"] matches values ending with "-active"; [data-tags~="featured"] matches a word in a space-separated list. document.querySelectorAll('[data-role]') or document.querySelector('[data-user-id="123"]'). With jQuery: $('[data-role="admin"]'). This tool generates ready-to-use CSS selectors for every extracted attribute.
data-src), or analytics tracking metadata. They are safe to use and won't harm SEO. For structured data that search engines should index, use JSON-LD (<script type="application/ld+json">) or microdata attributes instead of data attributes.
data-user-id, data-product-sku) for AJAX calls; Configuration flags (data-auto-play, data-lazy-load); Localization keys (data-i18n-key); Analytics tracking (data-track-event, data-ga-category); Tooltips & popovers (data-tooltip, data-placement); Component state for frontend frameworks; Testing hooks (data-testid, data-cy) for E2E tests with Cypress or Playwright; and Image lazy loading (data-src for JavaScript-driven lazy image loading before native loading="lazy" was widely supported).
document.querySelectorAll('[data-*]') or a dedicated web scraping tool.
Paste HTML code and extract all comments or remove them completely. See a list of comments found. Clean your markup.
Paste XML sitemap content and extract all <loc> URLs into a clean list. Useful for auditing. Local parsing only.
Tidy up messy HTML code with our online formatter and beautifier. Indent and clean your markup, preview the output instantly. No data is uploaded, everything runs in your browser.
Convert a JSON array of strings or numbers into a single‑column CSV. Quick data dump. Local.
Paste a Base64 data URI and download the image directly. Supports JPEG, PNG, GIF, WebP. Safe local processing.
Remove all EXIF data (GPS, camera info) from a JPEG before uploading. Processed locally. Protect your privacy.
Upload a WebP image and automatically generate a <picture> tag with JPEG/PNG fallback. Ensure compatibility everywhere.
See how to implement file upload progress using both fetch and XHR. Real‑time bar and code snippets for your project.
Enter RGB values row by row and create a tiny BMP file. Understanding bitmap headers. Geeky developer tool.
Paste HTML or URL to extract canonical link tag. Verify self-referencing. Simple SEO audit step. Local only.
Generate a standard XML sitemap for your website by entering a start URL. Crawls internal links directly from your browser. No server-side processing.
Write or paste an HTML snippet and generate a PDF using the browser's print engine. Customize page size and margins.
Upload a font file or specify a URL and generate the complete @font‑face rule with modern formats and font‑display. Copy instantly.
Transform any image into a Base64 data URI for embedding directly into HTML, CSS, or JSON. Drag and drop support. Entirely browser-side conversion.
Real‑time frequency spectrum from your microphone. Visual bars or line. Check room resonance.
Decode Base64 encoded strings back into viewable images and download them as PNG. Useful for debugging APIs and data URIs. Secure local processing.
Parse a Snowflake ID (used by Discord, Twitter) into its timestamp, worker, and sequence components. Instant local decoding.
Convert any image into colored ASCII art using divs with background colors. Creates a stunning text‑based replica. View & copy HTML.
Decode an image progressively using the ImageDecoder API. See partial results and metadata. Modern alternative to <img>.
Track daily mood with emoji selection and optional notes. See weekly/monthly mood trends in a color-coded chart. All data stored privately in localStorage.
Generate a palette of N colors that are maximally distinguishable for common color vision deficiencies. Copy the hex codes.
View recent earthquakes worldwide on a map. Fetches public USGS GeoJSON feed directly from browser. Real-time data.
Paste lyrics and tap while the song plays to embed timestamps. Export as .lrc file for music players. All in browser.
Reverse the NATO phonetic alphabet. Paste 'Bravo Romeo Alpha Victor Oscar' and get 'Bravo'. Essential for call center transcripts.
Remove solid or similar backgrounds from images using color thresholding. No AI, just quick client-side canvas processing. Download as PNG.
Enter a URL to see exactly what Open Graph and Twitter card tags will be shown when shared on social media. Fetch from browser.
Upload an image and see its 2D FFT magnitude and phase. Learn how image filtering works. Educatinal tool. Canvas.
Convert any image into beautiful ASCII art. Adjust brightness and character set for the best effect. Share text-based pictures. Runs entirely in the browser.
Enter the recipe's wattage and your microwave's wattage to convert cooking time. Prevent burnt or cold food.
Paste binary sequences and convert them back to readable text. Supports space-separated and 8-bit formatted strings. Quick encoding reconversion.