Skip to main content

Encoder Decoder

Base64 Encoding and Decoding

Description: Base64 is a binary-to-text encoding scheme that converts binary data into an ASCII string format. It's commonly used to encode data in email attachments, data URIs, and other places where binary data needs to be represented in a textual form.

Example:

  • Encoding:
  1. Hello World -> SGVsbG8gV29ybGQ=
  • Decoding:
  1. SGVsbG8gV29ybGQ= -> Hello World

Base32 Encoding and Decoding

Description: Base32 is a binary-to-text encoding scheme that converts binary data into an ASCII string format. It's commonly used in QR codes and other contexts where a shorter, more human-readable format is beneficial.

Example:

  • Encoding:
  1. Hello World -> JBSWY3DPEBLW64TMMQQQ====
  • Decoding:
  1. JBSWY3DPEBLW64TMMQQQ==== -> Hello World

URL Encoding and Decoding

Description: URL encoding, also known as percent-encoding, is a method of encoding special characters in URLs to ensure they are transmitted correctly. Spaces are replaced with %20, and other non-ASCII characters are converted to a hexadecimal format.

Example:

  • Encoding:
  1. Hello World -> Hello%20World
  • Decoding:
  1. Hello%20World -> Hello World

HTML Encoding and Decoding

Description: HTML encoding converts special characters in HTML to their corresponding HTML entities. This prevents characters from being interpreted as HTML tags or entities, ensuring they are displayed correctly.

Example:

  • Encoding:
  1. <script>alert('Hello World');</script> -> &lt;script&gt;alert(&#39;Hello World&#39;);&lt;/script&gt;
  • Decoding:
  1. &lt;script&gt;alert(&#39;Hello World&#39;);&lt;/script&gt; -> <script>alert('Hello World');</script>