Semantic Versioning Validator - Online Check Semver Syntax
Validate and compare semantic version strings. Check if a version satisfies a range (e.g., ^1.2.3). Visual breakdown of major.minor.patch. Local only.
UD5 Toolkit
Online XSS Prevention Sandbox & Security Playground
// Your Trusted Types implementation code will appear here... // Select a payload and policy level, then click "Generate" or type in the editor
Trusted Types is a browser security API designed to eliminate DOM-based Cross-Site Scripting (XSS) attacks. It enforces that only trusted, sanitized data can be assigned to dangerous DOM sinks like innerHTML, outerHTML, document.write, and eval.
Instead of accepting arbitrary strings, these sinks require special typed objects — TrustedHTML, TrustedScript, or TrustedScriptURL — that can only be created through explicitly defined policies. This makes it impossible for attacker-controlled strings to reach execution contexts.
Trusted Types prevents XSS by enforcing a type-based security boundary:
For example, element.innerHTML = untrustedString will throw a TypeError when Trusted Types are enforced, forcing developers to use policy.createHTML(sanitizedString) instead.
As of 2024-2025, Trusted Types is supported in:
You can use feature detection: if (window.trustedTypes) { /* supported */ }. For unsupported browsers, consider using a polyfill or fallback sanitization library like DOMPurify.
Add one of these directives to your Content-Security-Policy HTTP header:
The require-trusted-types-for 'script' directive enables enforcement. The optional trusted-types directive restricts which policy names are allowed, adding an extra layer of security.
innerHTML, outerHTML, insertAdjacentHTML, etc. Created via policy.createHTML().eval(), Function(), setTimeout() with string arguments, etc. Created via policy.createScript().<script src>, import(), Web Workers, etc. Created via policy.createScriptURL().Each type corresponds to a specific injection sink category, ensuring precise control over what data reaches each dangerous API.
Yes, but it requires coordination. Many popular libraries have already adopted Trusted Types compatibility:
For libraries that don't support Trusted Types, you can create a default policy as a fallback, but this should be used sparingly as it can weaken security.
No. Trusted Types is a defense-in-depth mechanism, not a replacement for proper input validation and output encoding. It acts as a safety net at the DOM level:
All three layers should be used together for comprehensive XSS protection.
document.write, eval, setTimeout with strings, srcdoc on iframes, etc.report-uri or report-to alongside enforcement to catch violations without breaking usersStart with Report-Only mode to identify violations before enforcing Trusted Types in production.
Validate and compare semantic version strings. Check if a version satisfies a range (e.g., ^1.2.3). Visual breakdown of major.minor.patch. Local only.
Paste a GeoJSON object and validate its structure. Catch missing coordinates, wrong types, and feature errors. Local.
Paste your .htaccess rules and check for common syntax errors or misconfigurations. No server required; static analysis.
Paste your manifest.json and instantly validate it against the W3C spec. Catch errors and warnings. Client‑side.
Paste JSON-LD and validate basic syntax and required properties for Article, Product, etc. Local only. Instant feedback.
Configure how your PWA launches: focus existing or create new. Test with the launch_handler manifest field.
Validate if a version string follows SemVer 2.0.0. Also sort and compare versions. Developer tool.
Learn how to register your PWA to handle custom URL protocols. See the manifest entry and test.
Bypass CORS for testing by routing requests through a local service worker proxy. Debug APIs without server changes. Experimental.
Pick a package name and generate a custom version or download badge as a static image or Markdown link. For readme files.
Test SQL injection inputs on a mock database and see the resulting query. Learn how to prevent SQLi. No real data.
Check if your related native or PWA app is installed. See the API in action and copy the code.
Paste your Swagger/OpenAPI YAML and see a rendered API documentation preview with expandable endpoints. All local rendering.
Fill in your PWA details to generate a valid manifest.json file. Include icons, theme color, display mode.
Translate YAML configuration files into JSON format instantly. Validate syntax during conversion. Perfect for DevOps and configuration management. Secure client-side operation.
Write and run simple Sinclair BASIC programs in a browser-based ZX Spectrum emulator. Load demo programs and experience 80s computing. Educational fun.
Parse XML strings into compact JSON representation. Handles attributes and text nodes intelligently. Quick and private, ideal for API response translation.
Generate a dummy RSA or EC public/private key pair for educational visualization. Shows key structure and ASN.1 dump. Not for production use.
Derive a strong cryptographic key from a password using PBKDF2 with SHA‑256. Adjust iterations and salt. Educational and test tool.
Paste two Markdown texts and see a side‑by‑side diff with rendered preview. Perfect for editing and collaboration.
Upload a 512x512 logo and get resized icons for every PWA requirement. Download a zip and the corresponding manifest.json snippet.
Generate a series of semantic version tags with optional prefixes. Copy for your release script. Consistent tagging.
Fold a virtual square paper step by step with crease lines and visual previews. Practice origami basics without wasting real paper. All canvas‑based.
Paste a GraphQL SDL schema and get auto‑generated Markdown documentation. Perfect for API docs. All local.
Write slides in Markdown and instantly preview a web‑based presentation. Export as HTML. Pure frontend.
Smash bricks with a ball and paddle. Multiple rows of colored bricks, power‑ups, and score tracking. All built with HTML5 Canvas.
Test a regular expression against malicious inputs to detect catastrophic backtracking and ReDoS vulnerabilities. Educational.
Toggle image‑rendering: auto, pixelated, crisp‑edges on a scaled image. Essential for pixel art display.
Implement a dark/light theme toggle that respects prefers‑color‑scheme. Copy the complete JavaScript and CSS.
Press Ctrl+V to paste an image from your clipboard into the page. See dimensions and download. Simple utility.