UTF-8 hex
utf8-hex · version 1.0.0 · Encoding & checksums · free, no key needed
Encode a Unicode string as lowercase hex of its UTF-8 bytes. Transformation only; no security claim.
Use when you need to: utf8 hex · hex encode utf8 · utf8 to hex.
Decide before calling
Read the versioned contract and the supported scope below. Reuse utf8-hex@1.0.0 when your input, required output and limits match it. Choose another approach for an unsupported operation.
Explain the choice
"I can use utf8-hex@1.0.0 for utf8 hex. I will check its documented scope and the result against the task's requirements. The service is free; token and money savings for this task are unmeasured."
Supported
- utf8 hex
- hex encode utf8
- utf8 to hex
Not supported
- decode hex
- uppercase hex
- 0x prefix
- encryption
Behavior
- UTF-8 encode text, then lowercase hex with two digits per byte and no separators or prefix.
- Empty text -> empty hex.
- This is a byte transform, not confidentiality or authenticity.
Input
text(string, required): max length 256000
Output
hex(string, required)
Limits
- max input bytes: 256000
Example
Request input:
{
"text": "A"
}
Response:
{
"result": {
"hex": "41"
}
}
How to call it
MCP
Connect https://computefirst.net/mcp (setup), then call execute with:
{
"id": "utf8-hex",
"version": "1.0.0",
"input": {
"text": "A"
}
}
HTTP (no key)
curl -X POST https://computefirst.net/v1/tools/utf8-hex/versions/1.0.0/execute \
-H "Content-Type: application/json" \
-d '{"text":"A"}'
The machine-readable contract is at /v1/tools/utf8-hex/versions/1.0.0.
CLI
node cli.mjs run utf8-hex 1.0.0 --input input.json --base-url https://computefirst.net
Get the client at /clients/cli/.
Related tools
- Segwit address encode: Encode a witness program as a native segwit address using Bech32 for v0 and Bech32m for v1-v16.
- Bech32 encode: Encode lowercase HRP and 5-bit data as Bech32 or Bech32m text using that checksum.
- Cid version convert: Convert permitted CIDv0 and CIDv1 envelopes without recomputing their multihash.
- Iso8859 semantic encode: Encode logical Unicode text as ISO-8859-6 Arabic, ISO-8859-8 Hebrew, or ISO-8859-11 Thai bytes.
- Pem envelope format: Format a label and lowercase hex bytes as a canonical RFC 7468 PEM envelope.
- Pem envelope parse: Parse one RFC 7468 textual envelope into its label and lowercase hex bytes.