Skip to content
My Blog

Search WPDesignVault

Try "image", "json", "schema" or "contrast". Use arrow keys to move through results.

Developer Tools

HTML Entity Encoder

Escape <, >, &, quotes and optionally every non-ASCII character as HTML entities so code displays as text.

Runs in your browser. Nothing you enter is uploaded. Last updated
Mode

How to use

  1. Paste the text or code.
  2. Choose whether to encode only the special characters or all non-ASCII characters.
  3. Copy the escaped result.

What this tool does

It replaces &, , ” and ‘ with entities, and can also convert any character outside basic ASCII to a numeric entity such as &#233;.

Frequently asked questions

When do I need to escape HTML?

Whenever you want to show code examples in a web page, or insert untrusted text into HTML. In WordPress code, use esc_html() and esc_attr() for that.

HTML Entity Decoder

Convert named and numeric HTML entities such as &amp; and &#8217; back into readable characters.

URL Encoder / Decoder

Encode or decode URLs and query values with percent-encoding, and inspect a URL's host, path and parameters.

UUID Generator (v4)

Generate one or up to 1,000 random v4 UUIDs at once, with uppercase, no-hyphen and brace options.

Unix Timestamp Converter

Convert Unix epoch timestamps to readable dates in UTC and your local time zone, or turn a date…

Regex Tester

Test JavaScript regular expressions against your text with highlighted matches, capture groups and a live replace preview.

JSON Minifier

Remove all unnecessary whitespace from JSON and see how many bytes you save.

JSON Validator

Check whether JSON is valid and find the exact line and column of any syntax error.