code

String Encoder / Decoder

Encode and decode strings with URL encoding, HTML entities, Base64, hex, and binary.

Input
Output
Input
Output
Input
Output
Input
Output
Input
Output
Common Encoding Reference
CharacterURLHTML EntityHex
&%26&26
<%3C&lt;3C
>%3E&gt;3E
"%22&quot;22
'%27&#39;27
Space%20&nbsp;20
#%23&#35;23
?%3F&#63;3F

Frequently Asked Questions

URL encoding (percent-encoding) converts characters that are not allowed in a URL into a % followed by two hex digits. For example, a space becomes %20 and & becomes %26. It ensures that URLs remain valid and unambiguous when sent over the internet.

Base64 encodes binary data (like images or files) into ASCII text so it can be safely transmitted in text-based protocols such as email (MIME), JSON, or data URIs in HTML/CSS. It increases the data size by about 33% but makes any binary data safely text-transportable.

HTML entity encoding replaces special characters with entity references that browsers interpret correctly. For example, < becomes &lt; so it displays as a less-than sign rather than being interpreted as an HTML tag. This is essential for preventing XSS (cross-site scripting) vulnerabilities.

About the String Encoder / Decoder

Encode and decode strings in multiple formats: Base64, URL encoding (percent-encoding), HTML entities, and hex. Paste any text and convert it to or from any supported format in one click. Useful for working with API responses, debugging encoded data, preparing URL parameters, and handling special characters in web content.