Idna domain to ascii

idna-domain-to-ascii · version 1.0.0 · URLs & IP addresses · free, no key needed

Convert a domain to DNS ASCII with UTS #46 ToASCII, STD3, and DNS lengths.

Use when you need to: convert internationalized domain to ascii · uts 46 toascii · unicode hostname to a-label.

Decide before calling

Read the versioned contract and the supported scope below. Reuse idna-domain-to-ascii@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 idna-domain-to-ascii@1.0.0 for convert internationalized domain to ascii. 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

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "domain": "faß.de",
  "transitional": true
}

Response:

{
  "result": {
    "ascii": "fass.de",
    "transitional": true,
    "data_version": "unicode-17.0.0-uts46-rev33"
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "idna-domain-to-ascii",
  "version": "1.0.0",
  "input": {
    "domain": "faß.de",
    "transitional": true
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/idna-domain-to-ascii/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"domain":"faß.de","transitional":true}'

The machine-readable contract is at /v1/tools/idna-domain-to-ascii/versions/1.0.0.

CLI

node cli.mjs run idna-domain-to-ascii 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.