> ## Documentation Index
> Fetch the complete documentation index at: https://docs.condotta.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Encoding Tools

> Encode, decode, and hash data: Base64, URL, hex, HTML entities, and cryptographic hashing.

The Encoding Tools connector provides encoding/decoding operations (Base64, URL, hex, HTML, binary) and cryptographic hashing (MD5, SHA1, SHA256, SHA512, HMAC).

> [!NOTE]
>
> No connection required. This utility connector works out of the box.

## Tools

### Encoding / Decoding

> [accordion] base64-encode: Encode to Base64
>
> **text** `string` *required*
>
> Text to encode.
>
> **urlSafe** `boolean` (default: false)
>
> Use URL-safe Base64 encoding.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "Hello, World!", "urlSafe": false }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "SGVsbG8sIFdvcmxkIQ==", "encoding": "base64" }
> ```

> [accordion] base64-decode: Decode Base64
>
> **encoded** `string` *required*
>
> Base64 string to decode.
>
> **urlSafe** `boolean` (default: false)
>
> Input uses URL-safe encoding.
>
> **Example request:**
>
> ```json theme={null}
> { "encoded": "SGVsbG8sIFdvcmxkIQ==", "urlSafe": false }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "Hello, World!", "encoding": "base64" }
> ```

> [accordion] url-encode: URL encode
>
> **text** `string` *required*
>
> Text to encode.
>
> **encodeAll** `boolean` (default: false)
>
> Encode all characters (not just special characters).
>
> **Example request:**
>
> ```json theme={null}
> { "text": "name=John Doe&city=New York" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "name%3DJohn%20Doe%26city%3DNew%20York", "encoding": "url" }
> ```

> [accordion] url-decode: URL decode
>
> **encoded** `string` *required*
>
> URL-encoded string to decode.
>
> **Example request:**
>
> ```json theme={null}
> { "encoded": "name%3DJohn%20Doe%26city%3DNew%20York" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "name=John Doe&city=New York", "encoding": "url" }
> ```

> [accordion] hex-encode: Encode to hex
>
> **text** `string` *required*
>
> Text to encode.
>
> **uppercase** `boolean` (default: false)
>
> Use uppercase hex characters.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "Hello", "uppercase": true }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "48656C6C6F", "encoding": "hex-upper" }
> ```

> [accordion] hex-decode: Decode from hex
>
> **hex** `string` *required*
>
> Hex string to decode.
>
> **Example request:**
>
> ```json theme={null}
> { "hex": "48656C6C6F" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "Hello", "encoding": "hex" }
> ```

> [accordion] html-encode: Encode HTML entities
>
> Convert special characters to HTML entities.
>
> **text** `string` *required*
>
> Text to encode.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "<div class=\"alert\">Price: $5 & up</div>" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "&lt;div class=&quot;alert&quot;&gt;Price: $5 &amp; up&lt;/div&gt;", "encoding": "html" }
> ```

> [accordion] html-decode: Decode HTML entities
>
> Convert HTML entities back to characters.
>
> **text** `string` *required*
>
> Text with HTML entities to decode.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "&lt;p&gt;Tom &amp; Jerry&lt;/p&gt;" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "<p>Tom & Jerry</p>", "encoding": "html" }
> ```

> [accordion] to-binary: Convert to binary
>
> **text** `string` *required*
>
> Text to convert.
>
> **separator** `string` (default:  )
>
> Separator between bytes.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "Hi", "separator": " " }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "01001000 01101001", "encoding": "binary" }
> ```

> [accordion] from-binary: Convert from binary
>
> **binary** `string` *required*
>
> Binary string to convert.
>
> **separator** `string` (default:  )
>
> Separator between bytes.
>
> **Example request:**
>
> ```json theme={null}
> { "binary": "01001000 01101001", "separator": " " }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "result": "Hi", "encoding": "binary" }
> ```

### Hashing

> [accordion] hash-md5: MD5 hash
>
> **text** `string` *required*
>
> Text to hash.
>
> **encoding** `string` (default: hex)
>
> Output encoding: `hex` or `base64`.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "user@example.com", "encoding": "hex" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "hash": "b58996c504c5638798eb6b511e6f49af", "algorithm": "md5", "encoding": "hex" }
> ```

> [accordion] hash-sha1: SHA1 hash
>
> **text** `string` *required*
>
> Text to hash.
>
> **encoding** `string` (default: hex)
>
> Output encoding: `hex` or `base64`.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "Hello, World!" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "hash": "943a702d06f34599aee1f8da8ef9f7296031d699", "algorithm": "sha1", "encoding": "hex" }
> ```

> [accordion] hash-sha256: SHA256 hash
>
> **text** `string` *required*
>
> Text to hash.
>
> **encoding** `string` (default: hex)
>
> Output encoding: `hex` or `base64`.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "sensitive-payload", "encoding": "hex" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "hash": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2", "algorithm": "sha256", "encoding": "hex" }
> ```

> [accordion] hash-sha512: SHA512 hash
>
> **text** `string` *required*
>
> Text to hash.
>
> **encoding** `string` (default: hex)
>
> Output encoding: `hex` or `base64`.
>
> **Example request:**
>
> ```json theme={null}
> { "text": "document-content", "encoding": "base64" }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "hash": "kG7s1j3dF8xQ2mN5pR7tY9wB4vK6hL0...", "algorithm": "sha512", "encoding": "base64" }
> ```

> [accordion] hmac: HMAC signature
>
> **text** `string` *required*
>
> Text to sign.
>
> **secret** `string` *required*
>
> Secret key.
>
> **algorithm** `string` (default: sha256)
>
> Hash algorithm: `sha1`, `sha256`, `sha512`, or `md5`.
>
> **encoding** `string` (default: hex)
>
> Output encoding: `hex` or `base64`.
>
> **Example request:**
>
> ```json theme={null}
> {
>   "text": "{\"event\":\"order.created\",\"id\":123}",
>   "secret": "whsec_my_webhook_secret",
>   "algorithm": "sha256",
>   "encoding": "hex"
> }
> ```
>
> **Example response:**
>
> ```json theme={null}
> { "hash": "e4d7f1b3a2c5e8d6f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b9c0d1", "algorithm": "sha256", "encoding": "hex" }
> ```

> [card] [Try this free for 14 days](https://preview.condotta.ai/signup)
>
> Start a 14-day trial on Band 1. At day 14, choose your band, or stop.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.