〈〉
HTML Encode / Decode
Convert special characters to HTML entities and back.
🔒 Private • Browser processing — working inputs stay in this tab.
Using HTML Encode / Decode
Convert special characters to HTML entities and back.
Try a small example first
Encode <b>Bag</b> and check that the angle brackets become entities. Decode the result only when you deliberately need the original markup.
Check the result before using it
Encoding text for HTML is different from sanitizing untrusted HTML. Validate the destination context before inserting any result into a page.
Working safely
Keep your source separately while checking the output. The processing policy explains browser processing and separate analytics or library requests. Avoid confidential material unless this workflow meets your requirements.
Related tools
Last reviewed: September 1, 2026