Original text
0 characters
Prepare text for safe HTML display or decode entity references back to readable text.
These are example steps; replace the values for your task.
0 characters
0 characters
Safely display reserved characters in HTML source, code samples, CMS fields, and more.
With quote encoding enabled, “Tom & "Sam"” becomes “Tom & "Sam"”. Decoding that entity string returns the original text.
Convert HTML special characters to entity references for literal display.
Try this example replaces the input and settings. Restore previous input returns to the state before the latest example. Normal draft-saving rules apply.
After trying multiple examples, repeat Restore previous input to return to your original input. History is kept only in this page; restore any input you need before closing it.
<b>A&B</b>
Encode quotes: On; Encode non-ASCII: Off; Operation: Encode
<b>A&B</b>
The result represents the markup as text when inserted into HTML text content.
This does not guarantee safety in JavaScript, CSS, URLs or every attribute context; use context-appropriate handling.
Encoding always converts &, <, and >. Quotes and non-ASCII characters are optional.
Recognized entities are decoded, while unrecognized text remains unchanged.
No. Conversion and storage take place only in your browser.
Share only the tool name and public URL. Your input and results are not included.
Keep a separate copy before clearing or resetting. This browser autosaves entered text and tool settings. Data is not restored when read 30 days or more after its last save. Clearing site data or storage restrictions may remove it sooner.
Favorites and language preferences are stored separately and may be lost when site data is cleared. Tool resets and site-data deletion do not delete files already downloaded to your device.