WebToolsForAll

Tools / Text Tools

HTML text escaper

Encode characters for an explicit HTML text transformation.

Input

0 UTF-16 code units

Optional local draft

Saving stores a plaintext draft in this browser on this device. Do not save secrets or use this on a shared device. Nothing is saved or loaded automatically. Reset does not delete a saved draft; use Delete local draft.

No draft has been loaded.

Import a local text file

Output

Work through the task

Encode text characters for the selected HTML text transformation.

  1. Enter text and choose Escape HTML text.
  2. Inspect the entity text. Its correct use depends on the surrounding HTML context; it does not make arbitrary markup safe.
  3. Review the result before copying or downloading. Editing an input invalidates the previous result; keep an original if the transformation matters.

Example to check

<b>A & B</b> → &lt;b&gt;A &amp; B&lt;/b&gt;.

Limits and output behavior

Maximum 100,000 input characters and 1,000,000 output characters. Contexts have different complete-literal rules; unsupported syntax and malformed encoded input are rejected. Escaping is not application validation, general HTML sanitization or SQL injection protection.

Troubleshooting

Check the selected HTML text operation and source/output size limits. Keep the source; escaping does not validate arbitrary HTML markup or an application context.

Questions

Does escaped HTML text become safe in every HTML attribute or script context?

No. This is the stated text transformation. Attributes, URLs and scripts have different complete-context rules.

Input and privacy

Processing runs in this browser. Inputs are not saved automatically. An explicitly chosen local draft, where offered, is plaintext storage on this device. Downloaded files, clipboard contents and browser extensions have separate retention behavior.