String Encoder & Decoder

Encode and decode strings instantly — Base64, URL, HTML entities, Binary, Hex, and Morse code. Real-time conversion with no data sent to servers.

How to Use

1

Select an Encoding Type

Click one of the six tabs — Base64, URL, HTML, Binary, Hex, or Morse — to choose the encoding format you want to work with. Each tab changes both the encoding and decoding behavior.

2

Type or Paste Your Text

Enter any text into the Input box. The output updates in real time as you type, so you can see the encoded result immediately without pressing any button.

3

Click Encode or Decode

Use the Encode button to convert plain text to the selected format, or the Decode button to reverse the process and recover the original text from an encoded string.

4

Use Swap to Reverse

Click Swap to move the output back into the input field. This is useful when you want to chain operations — for example, decode a Base64 string and then re-encode it in Hex.

5

Copy the Result

Click Copy to send the output to your clipboard. The character count and size are shown next to the output label so you can monitor how the encoding affects the data size.

Frequently Asked Questions

Base64 is a binary-to-text encoding scheme that represents binary data using only ASCII characters (A–Z, a–z, 0–9, +, /). It is commonly used to embed binary data — like images or files — inside text-based formats such as JSON, XML, email attachments (MIME), and data URIs in HTML and CSS. Base64 increases the data size by approximately 33%.

URL encoding (percent-encoding) converts special characters — spaces, &, =, ?, #, and others — into a percent sign followed by two hexadecimal digits (e.g., a space becomes %20). This ensures that values can be safely transmitted in URLs without breaking the URL structure. It is essential when passing user-supplied text as query parameters.

HTML entities are special character codes used in HTML to represent characters that would otherwise be interpreted as code. For example, < becomes &lt;, & becomes &amp;, and > becomes &gt;. Encoding user-supplied text as HTML entities prevents Cross-Site Scripting (XSS) attacks when rendering content in a web page.

Yes — Unicode characters (accented letters, Chinese, Arabic, emoji, etc.) are fully supported for Base64, URL, and HTML encoding. Binary and Hex encode the raw UTF-8 byte values of the characters. Morse code is limited to the standard Latin alphabet and digits (A–Z, 0–9); unsupported characters are shown as a question mark.

There is no hard limit enforced by this tool — all processing runs entirely in your browser with no server round-trips. Very large inputs (hundreds of kilobytes or more) may cause a brief delay, especially for Binary encoding which expands each character to an 8-character bit string. For typical text inputs, conversion is instantaneous.

Related Utility Tools