String Encoder / Decoder
Encode and decode strings with URL encoding, HTML entities, Base64, and more. Chain multiple encoding steps in a pipeline for complex transformations.
How to Use the String Encoder / Decoder
Select an encoding type (URL, HTML, Base64, Unicode, or Hex), choose whether you want to encode or decode, and paste your text. The output updates in real time as you type. Use the copy button to grab the result instantly.
What Is String Encoding?
String encoding transforms characters into a specific format for safe transmission or storage. URL encoding (percent-encoding) replaces special characters with %XX codes so they can be safely included in URLs. HTML entity encoding prevents cross-site scripting by converting characters like < and & into their entity equivalents. Base64 encodes binary data into ASCII characters for embedding in JSON, emails, or data URIs. For dedicated Base64 handling, see our Base64 encoder/decoder.
Common Use Cases
Encode query parameters for API requests. Decode URL-encoded form data for debugging. Convert special characters to HTML entities for safe display on web pages — or use our HTML entity encoder for more control. Encode binary data as Base64 for embedding in CSS or JSON. Decode Unicode escape sequences from JSON strings. All processing happens entirely in your browser — nothing is sent to any server.