String to Escaped HTML - Online Protect Against XSS
Instantly convert plain text into HTML‑safe escaped characters for secure display in web pages. Prevent cross‑site scripting. All processing local.
UD5 Toolkit
Escape or unescape HTML special characters instantly. Protect your web pages from XSS and rendering issues.
| Character | Name | Entity Name | Entity Number | Description |
|---|---|---|---|---|
& | Ampersand | & | & | Must always be escaped first |
< | Less-than | < | < | Prevents tag interpretation |
> | Greater-than | > | > | Avoids end-tag confusion |
" | Double Quote | " | " | Safe inside attributes |
' | Single Quote | ' | ' | Safe inside attributes |
| Non-breaking Space | |   | Prevents line wrapping |
© | Copyright | © | © | Copyright symbol |
® | Registered | ® | ® | Registered trademark |
™ | Trademark | ™ | ™ | Trademark symbol |
€ | Euro | € | € | Euro currency symbol |
— | Em Dash | — | — | Long dash |
– | En Dash | – | – | Short dash |
< becomes <. Without escaping, special characters can break your page layout, cause rendering errors, or create XSS (Cross-Site Scripting) vulnerabilities that allow attackers to inject malicious scripts into your website.
& → & (ampersand — always escape first!)< → < (less-than / opening tag)> → > (greater-than / closing tag)" → " (double quote — important inside attributes)' → ' or ' (single quote — important inside attributes)/) may need escaping as / in certain contexts like inside <script> tags.
<, >, and & with entities for safe display in HTML documents. URL encoding (also called percent-encoding) replaces unsafe characters with %-prefixed hex codes for safe inclusion in URLs. For example, a space becomes %20 in a URL but may become in HTML. They serve different purposes and are not interchangeable.
<script> tags or event handlers like onclick.
<div class="example"> on your page, paste the escaped version <div class="example"> into your HTML file. The browser will render it as readable text rather than interpreting it as an actual HTML element. This is especially useful for code snippets, tutorials, and user-generated content.
<, >, &, ", and numeric entities back to their original characters. This is useful when you receive escaped HTML and need to read or process the original text. The unescape process uses the browser's built-in HTML parser for accurate, reliable decoding.
中 for 中), you may need an additional encoding step — this tool focuses on the critical HTML-special characters.
& is the prefix character for all HTML entities. If you escape other characters first (e.g., < becomes <), the newly created & in < would then be escaped again to &lt;, resulting in double-escaping. By always escaping & first, you prevent this cascading error. This is why our tool processes the ampersand before any other character.
< into &lt;. This makes the text display incorrectly (showing raw entity codes instead of the intended characters). To avoid it, always track whether your data has been escaped, and use the Unescape mode to revert double-escaped content before re-escaping. Our tool's "Swap" feature lets you quickly verify by unescaping the output to check correctness.
Instantly convert plain text into HTML‑safe escaped characters for secure display in web pages. Prevent cross‑site scripting. All processing local.
Convert plain text lines into HTML ordered or unordered lists. Instantly copy the generated HTML to paste into your website. No hassle, fully browser-based.
Paste an HTML snippet and check for common ARIA mistakes: missing labels, invalid roles, and aria‑hidden misuse. Educate your team.
Paste HTML snippet and highlight interactive elements missing accessible labels. Quick a11y audit.
Validate a language tag like en‑US or zh‑Hans against the IANA registry. Ensure correct HTML lang attribute.
Create a fully accessible form by adding fields; the tool generates the proper labels, inputs, and ARIA attributes. Copy the clean HTML.
Paste JavaScript and catch syntax errors instantly with line numbers. Lightweight pre‑commit check. Local.
Paste a string of weather emojis and get a written weather forecast. Fun and educational emoji tool.
Convert .srt subtitles to .vtt format for web video players. Preserves all timestamps and formatting. Local.
Paste a WebVTT file and instantly check for syntax errors. Validate timestamps and cue formatting. Essential for video devs.
Create a 5‑star rating widget using only HTML and CSS. Customize colors and size. Copy the clean code.
Paste an SVG and check if the graphic‑aria roles are used correctly. Improve accessible diagrams and icons.
Enter a text color and background color and instantly see if the combination passes WCAG AA and AAA ratio. Safe colors.
Create SEO‑friendly slugs that handle characters from any language. Removes accents, converts Cyrillic, Greek, etc. to Latin. Local.
Paste any DNS record and check if its format is valid for the selected record type (A, AAAA, CNAME, MX, TXT, SRV). Prevents typos.
Reverse any short video clip and download the backward version. Fun for creative effects. Browser‑based.
Enter an HTML snippet and see a rough transcription of what a screen reader might announce. Check alt texts.
Search common dream symbols and their traditional meanings. For entertainment and self-reflection. Static data.
Enter any number up to trillion and get the English word representation. For filling out checks or legal documents.
Enter original and target color to compute the exact CSS hue‑rotate(deg) filter needed. For precise icon and image tinting.
Automatically restore natural colors to a photo by removing color casts. Gray world algorithm. One‑click fix. Canvas.
Encode latitude/longitude into a geohash string and decode a geohash back to coordinates with precision info. Local algorithm.
Paste your manifest.json and instantly validate it against the W3C spec. Catch errors and warnings. Client‑side.
Shift the color temperature of your photo towards warm (orange) or cool (blue). Instant canvas filter. Download result.
Generate a grand, aristocratic title like 'Duke of Waffleshire'. Perfect for silly fun or RPG characters. Local.
Calculate the perceived brightness of an RGB color and determine if black or white text is more readable. Accessibility tool.
Build a 3D card flip effect and toggle backface‑visibility. See the hidden back face. Copy the complete CSS.
Paste a set of hex colors and simulate how they appear with common color vision deficiencies. Get contrast warnings.
Enter latitude and longitude and get a human‑readable address using the browser's built‑in reverse geocoding (if available).
See how a PWA can extend content into the title bar area on desktop. Customize the window controls overlay.