ForHosting KIT · Developer Utilities

ASCII converter

This ASCII converter provides a focused, bidirectional lookup for one value at a time.

● BetaFree · in your browser
Use it from WebAPIEmailTelegramApp soon

Give it a character to receive the corresponding decimal ASCII code, or give it a decimal code to recover the represented character. It handles the complete seven-bit ASCII range, including letters, digits, punctuation, spaces, and control characters. Inputs are checked strictly, so non-ASCII characters, malformed numbers, and codes outside 0 through 127 produce a clear error instead of an ambiguous result.

Convert a character into its ASCII code

Choose character-to-code mode when you have a symbol and need its decimal ASCII value. The input must contain exactly one character, including when that character is a space or another normally invisible value. The converter reads its code point and verifies that it belongs to the original seven-bit ASCII table. For example, uppercase A maps to 65, lowercase a maps to 97, the digit 0 maps to 48, and a space maps to 32. Case matters because uppercase and lowercase letters occupy different positions. A character such as an accented letter, emoji, typographic quotation mark, or long dash is valid Unicode but is not ASCII, so it is rejected. This strict boundary is useful when checking a protocol field, creating a compact test vector, examining a delimiter, or debugging a system that accepts only ASCII. The result contains the converted decimal value without unrelated encodings, making it straightforward to copy into source code, documentation, or another calculation.

Convert an ASCII code into its character

Choose code-to-character mode when you know a decimal ASCII code and want the character assigned to it. Enter a whole decimal number from 0 through 127. Ordinary printable results include letters, digits, mathematical marks, brackets, and punctuation. The range also includes control characters: code 9 is a horizontal tab, code 10 is a line feed, code 13 is a carriage return, and code 127 is delete. Those results can be difficult to see in plain text because they affect layout or have no visible glyph, but the returned value is still the actual character represented by the code. The parser intentionally accepts decimal notation only. It rejects signs, fractions, hexadecimal prefixes, extra whitespace, and mixed text so that an input cannot be interpreted in two ways. It also checks the numeric boundary after parsing. A value such as 128 therefore produces an error rather than silently wrapping, truncating, or returning a non-ASCII Unicode character.

Use strict ASCII conversion in reliable workflows

ASCII is a small character set, but it remains important in file formats, network protocols, command syntax, source code, and data interchange. A strict converter helps distinguish an ASCII character from a visually similar Unicode character. A normal hyphen has code 45, for example, while several longer dash characters sit outside ASCII and must not be treated as substitutes in a byte-level format. The same distinction matters for straight quotation marks, spaces, and copied punctuation. This capability performs no normalization and makes no guesses: it converts exactly one character or one canonical decimal code. That behavior makes repeated calls deterministic and suitable for automated validation as well as quick manual checks. Nothing is fetched from the network, and no locale, clock, randomness, or platform-specific character encoding influences the answer. For API automation, each request costs $0.002. For dependable results, select the direction explicitly, preserve the input exactly, and expect an invalid-input error whenever the value falls outside the defined ASCII domain.

Inspect a protocol delimiter

Turn a delimiter character into its decimal code before documenting or validating an ASCII-based protocol.

Decode a numeric byte value

Convert a decimal value from a log or specification into the exact ASCII character it represents.

Catch look-alike Unicode characters

Verify whether copied punctuation is truly ASCII instead of a visually similar character from a wider Unicode range.

What range of codes is supported?

The complete seven-bit ASCII range from 0 through 127 is supported. Values outside that range return an invalid-input error.

Can I convert accented letters or emoji?

No. Those are Unicode characters outside ASCII. Character-to-code mode accepts exactly one character whose code is between 0 and 127.

Why is the returned character blank or invisible?

Some ASCII codes represent spaces or control characters rather than visible glyphs. The returned string still contains the represented character.

Can I enter hexadecimal or binary codes?

No. Code-to-character mode deliberately accepts canonical decimal integers only, avoiding ambiguity about the numeric base.

How much does an API conversion cost?

Each API request costs $0.002. The conversion is deterministic and processes one item per request.

Everything on this page is available programmatically. This section is for teams who want to wire it into their own systems; everyone else can just use the tool above.

POSThttps://api.kit.forhosting.com/enc/ascii-converter

Prefer to automate it? One authenticated POST creates the task; the result comes back by webhook or a signed link. The same capability also runs here on the web, by email and from Telegram — and soon from our app too.

curl -X POST https://api.kit.forhosting.com/enc/ascii-converter \
  -H "Authorization: Bearer $KIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"character_to_code","text":"A"}'
{
  "mode": "character_to_code",
  "text": "A"
}
{
  "task_id": "tsk_a1b2c3d4e5f6a1b2c3d4e5f6",
  "type": "enc.ascii_converter",
  "status": "queued",
  "_links": {
    "result": "/tasks/tsk_…/result"
  }
}

The API is asynchronous: the call returns a task_id immediately and the result arrives by webhook. Polling is capped at 1 req/s per task.

Per request$0.002

Published price — no tokens, no invented credits. A failed task is never charged.

HTTPCodeMeaning
401unauthorizedMissing or invalid API key.
402insufficient_balanceYour balance doesn't cover the task price.
404unknown_typeThat task type doesn't exist.
429rate_limitedToo many requests. Use the webhook instead of polling.

Read the full KIT documentation →