GameParticles

HTML Entity Encoder

DeveloperNew

Convert <, >, &, © and € to their HTML entity equivalents, or decode HTML entities back to plain text. Includes a clickable reference table of common entities.

Plain text
1 lines0 chars
HTML entities
1 lines0 chars

Works great for

🌐

Encoding special characters

Convert raw HTML markup characters like angle brackets and ampersands into safe entity equivalents for embedding in web pages. Prevents browser parsing errors when injecting dynamic content into HTML templates.

✍️

Blog and CMS content editing

Escape HTML entities in article content, blog posts, and CMS rich-text fields before saving to a database. Avoids broken layouts caused by unescaped less-than signs or curly quotes in post bodies.

📧

Email template development

Encode special characters and currency symbols in HTML email templates for clients like Outlook that handle Unicode inconsistently. Use named entities like &amp;euro; and &amp;copy; for maximum compatibility.

🔒

Sanitising user input display

Encode user-submitted text before rendering it in HTML to prevent cross-site scripting (XSS) vulnerabilities. The HTML-only mode encodes just the five critical characters needed for safe display without over-encoding.

🌍

Internationalisation and Unicode

Encode accented characters and international symbols as numeric HTML entities for environments where UTF-8 encoding is not guaranteed. Decode incoming entity strings to verify the correct characters are being stored.

🔣

Inserting symbols and typography

Look up and copy HTML entities for em dashes, copyright symbols, arrows, and typographic quotes from the reference table. Click any entity to copy it instantly for use in HTML, CSS content properties, or Markdown.

html entity encoderhtml entitiesencode htmldecode html entitieshtml escapehtml special charactershtml entity decoderampersand encodexss preventionhtml entity reference

Frequently asked questions

How do I encode special characters like & and < for HTML?

Paste text containing characters such as &, <, >, (c), or (euro) and the tool converts them to their HTML entity equivalents like &amp; and &lt; instantly. Switch direction to decode entities back into readable text.

Does this tool include a reference table of common HTML entities?

Yes. A clickable reference table lists common entities such as &amp;, &lt;, &gt;, and &copy; alongside their decimal and named codes, so you can look one up without encoding anything.

Is encoding HTML entities useful for preventing XSS attacks?

Encoding characters like < and > into entities is one part of preventing cross-site scripting, since it stops raw markup from being interpreted as HTML tags. It should be paired with proper server-side sanitization for real security.

Can I decode HTML entities back into plain text?

Yes. Paste text containing entities such as &amp;amp; or &amp;#169; and the tool decodes them back to their plain character equivalents in the opposite direction.

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵