Upc ean convert

upc-ean-convert · version 1.0.0 · Identifiers & check digits · free, no key needed

Convert a validated UPC-A, UPC-E, EAN-13 or GTIN-14 number to another symbol format, recomputing the check digit.

Use when you need to: convert upc-e to upc-a · expand a compressed upc barcode · convert ean-13 to gtin-14.

Decide before calling

Read the versioned contract and the supported scope below. Reuse upc-ean-convert@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 upc-ean-convert@1.0.0 for convert upc-e to upc-a. 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:

{
  "value": "042100005264",
  "to": "upc-e"
}

Response:

{
  "result": {
    "result": "04252614",
    "from_format": "upc-a",
    "check_digit": "4"
  }
}

How to call it

MCP

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

{
  "id": "upc-ean-convert",
  "version": "1.0.0",
  "input": {
    "value": "042100005264",
    "to": "upc-e"
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/upc-ean-convert/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"value":"042100005264","to":"upc-e"}'

The machine-readable contract is at /v1/tools/upc-ean-convert/versions/1.0.0.

CLI

node cli.mjs run upc-ean-convert 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.