HTML entities
Escape characters that have special meaning in HTML or decode the supported entities.
HTML entities: inputs, results and limitations
Escape characters that have special meaning in HTML or decode the supported entities.
How to use HTML entities
- Paste your text or use the example to inspect the operation.
- Review the options before running: Operation: encode
- Inspect the preview or result, then download a new file.
An illustrative use case
An HTML heading shown as literal text after entity encoding.
Sample input
<h1>Hello & welcome</h1>
What to inspect in the output
Inspect ampersands and angle brackets after conversion. Decoding entities is not the same as safely sanitizing arbitrary HTML for an application.
Where this tool stops
Review the output before using it. Your original input is not changed.
Settings and starting values
| Control | Starting value |
|---|---|
| Operation | encode |
Troubleshooting HTML entities
Check source syntax and distinguish literal characters from their escaped representation. Run the example first, then compare with your failing input to isolate the invalid part.
Questions about HTML entities
Does entity decoding make HTML safe to execute?
No. It turns escaped characters back into characters. Treat decoded content as untrusted when displaying or inserting it.
What input does HTML entities need?
Use the sample text shown below, then replace it with your own input. Review the result for the destination where it will be used.
Which options does HTML entities provide?
Operation. Review the starting values in the table and adjust them for your input.
Your original input is preserved. Review the new output before using it in a published page, customer delivery or production workflow.
JavaScript enables the interactive workspace.