Text-Integer Conversion

Converts between text strings and large integers (decimal or hexadecimal).

Input: TextResult: Text

Text input

Tool options

Examples

Text-Integer Conversion decimal to hex conversion

Input

255

Expected answer

0xff
Output format
Hexadecimal
Text-Integer Conversion decimal to string

Input

4276803

Expected answer

ABC
Output format
String
Text-Integer Conversion hex to decimal conversion

Input

0xFF

Expected answer

JSON
255
Output format
Decimal
Text-Integer Conversion hexadecimal to string

Input

0x48656C6C6F

Expected answer

Hello
Output format
String
Text-Integer Conversion large number to string

Input

113091951015816448506195587157728348242683688608116

Expected answer

Mary had a little cat
Output format
String
Text-Integer Conversion non-Latin1 character in input

Input

fbf874ce8b4307a14096566f.bin

4 bytes

Download

Expected rejection

Message contains
Character at position 1 exceeds Latin-1 range (0-255).
Only ASCII and Latin-1 characters are supported.
Output format
Decimal
Text-Integer Conversion quoted string to decimal

Input

"ABC"

Expected answer

JSON
4276803
Output format
Decimal
Text-Integer Conversion quoted string to hexadecimal

Input

"ABC"

Expected answer

0x414243
Output format
Hexadecimal
Text-Integer Conversion single character

Input

"A"

Expected answer

JSON
65
Output format
Decimal
Text-Integer Conversion single quoted string to decimal

Input

'Hello'

Expected answer

JSON
310939249775
Output format
Decimal

Text is interpreted as a big-endian sequence of character codes. For example: ABC is 0x414243 (hex) is 4276803 (decimal) Input format detection: Decimal: digits 0-9 only Hexadecimal: 0x... prefix Quoted or unquoted text: treated as string Character limitations: Text input may only contain ASCII and Latin-1 characters (code point < 256). Multi-byte Unicode characters will generate an error. .

Format reference: Text-Integer Conversion background and specification

Parameters

ParameterDefault valueInput and choices
Output formatStringString, Decimal, Hexadecimal

Related tools

Browse data format tools