Tools
English

Neogie Entities · Developers and SEO

HTML Entity Encoder and Decoder

Show code or special characters without breaking the page: the result follows your typing.

Settings

Everything happens in your browser: nothing you type is sent.

What is an HTML entity?

In HTML some characters have a job: < opens a tag, & announces an entity. To display them, you write them in a coded form that starts with & and ends with a semicolon. So < is written &lt; and & is written &amp;.

Any character can also be written with its Unicode number, in decimal or hexadecimal. Many have a name too, such as &eacute; for é or &euro; for €.

Encoding

  • Only < > & " ': what you need to show code on a page. The rest of the text does not change.
  • Also accents and symbols: useful when an old system damages everything that is not ASCII.
  • Every character: each sign becomes an entity, except line breaks and tabs.

Decoding

Paste text containing entities into the second box. All HTML 5 entities are recognised, as well as decimal and hexadecimal numbers. The result is displayed as plain text: no tag is ever executed.

Escaping is not always enough

Converting < > & " ' protects text placed between two tags or inside a quoted attribute. It is not enough for a web address, a script or a style sheet, which have their own rules. On a website, let your template engine escape the data.

Frequently asked questions

Do I need to encode accented letters?

Not on a UTF-8 page, which is the usual case today. Accent entities only help with tools or files that handle encodings badly.

What is &nbsp; for?

It is a non-breaking space: the two words it separates stay on the same line. Several in a row are not collapsed into one.

Why does the apostrophe become &#39;?

The name &apos; did not exist in older versions of HTML. The number is understood everywhere.

Is my text sent anywhere?

No. The conversion happens in your browser and nothing is saved apart from your settings.

Similar tools

Neogie SnippetSERP Snippet Preview ToolType a title and a description: the simulated result shows where they will be cut off. Neogie Base64Base64 Encoder and Decoder: Text, Files and JWTType on one side, the result appears on the other. Text, files and JWT tokens, with nothing uploaded. Neogie CRC32CRC-32 Calculator for Text and FilesThe checksum of a text as you type, or that of a file you want to compare. Neogie FileDiffCompare two files or folders: text and bytesDrop two files or two folders: differences appear at once, by line for text and by byte for everything else. Neogie BinaryBinary Translator: Text to Binary and BackType a message to see it in 0s and 1s, or paste binary to read it. Neogie HexText to Hex and Hex to Text ConverterType text to see its bytes, or paste hexadecimal to get the text back. Neogie PunycodePunycode Converter for Internationalized Domain Names (IDN)Turn a domain name with accents or other scripts into its “xn--” form, and back. Neogie Ascii85Ascii85, Z85 and Base85 Encoder and DecoderText or files to Base85 and back: five characters for every four bytes. Neogie Base32Base32 Encoder and DecoderText or files to Base32 and back, with the three most used alphabets. Neogie Base58Base58 and Base58Check Encoder and DecoderText or files to Base58 and back, with the Base58Check checksum if you want it. Neogie URLURL Encoder and Decoder (Percent-Encoding)Type on one side, the other fills in: addresses, parameters and form data, with every part spelled out. Neogie CSSCSS Formatter, Checker and MinifierPaste your style sheet: it is tidied up or compacted, and errors are reported. Neogie HTMLHTML Formatter, Checker and MinifierPaste your code: it is indented or compacted instantly, and structural errors are reported. Neogie JSONJSON Formatter and Validator OnlinePaste your JSON: it is checked and tidied up instantly, with the line and column of every error. Neogie SQLSQL Formatter Online: Indent and MinifyPaste a one-line query: it comes out split into clauses, ready to review. Neogie XMLXML Formatter and Validator OnlinePaste your XML: it is checked and indented instantly, with the line and column of the first error. Neogie MetaMeta Tag and Open Graph GeneratorFill in the fields: the preview and the code to paste into your page update instantly. Neogie RobotsRobots.txt Generator and TesterBuild the rules for search engine crawlers, then check which addresses they can visit. Neogie SitemapXML Sitemap Generator from a URL ListPaste your page URLs: your XML sitemap is ready to download. Neogie RegexRegex Tester Online: JavaScript Regular ExpressionsType a pattern and some text: matches and their groups are colored as you type.