HTML Encoder & Decoder

Convert special characters to and from HTML entities.


How to Use

URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits. It's used in query strings, redirect URLs, and APIs to safely transmit characters like spaces, ampersands, and question marks.

Example: Encoding a full URL

Original URL:

https://example.com/search?q=hello world&lang=en

Encoded URL:

https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3Den

Example: Decoding

Input:

https%3A%2F%2Fexample.com%2Fpage%3Fid%3D123%26ref%3Dnewsletter

Decoded:

https://example.com/page?id=123&ref=newsletter