onlineasciitools logo

Ascii to hexadecimal converter

World's simplest ascii tool

A simple browser-based utility that converts ASCII strings to hex numbers. Just paste your ASCII data in the input area and you will instantly get hexadecimal data in the output area. Fast, free, and without ads. Import ASCII – get hexadecimal. Created by nerds for nerds.
announcement heads up!
We just launched a new site — Online MATH Tools — utilities for doing mathy things. Check it out!
fullscreen fullscreen_exit
Hexadecimal Options
Prepend 0x to all hex numbers.
Pad single digit hex numbers with a 0.
Inserting extra spaces between hex.
Ascii to hexadecimal converter tool What is a ascii to hexadecimal converter?
This tool takes plain-text ASCII data as input and converts it to hexadecimal base. Hex numbers can be prefixed with "0x" base prefix and they can be separated by a space for better readability and they can be padded with a zero so that each hex number has two nybbles.
Ascii to hexadecimal converter examples Click to use
Convert ASCII to Hexadecimal
In this example we convert plain ASCII characters to hexadecimal values. We also enable all three possible options for padding, prefixing and spacing output hex numbers.
Why do geeks always mix up Halloween and Christmas? Because Oct 31 is Dec 25.
0x57 0x68 0x79 0x20 0x64 0x6f 0x20 0x6e 0x65 0x72 0x64 0x73 0x20 0x61 0x6c 0x77 0x61 0x79 0x73 0x20 0x6d 0x69 0x78 0x20 0x75 0x70 0x20 0x48 0x61 0x6c 0x6c 0x6f 0x77 0x65 0x65 0x6e 0x20 0x61 0x6e 0x64 0x20 0x43 0x68 0x72 0x69 0x73 0x74 0x6d 0x61 0x73 0x3f 0x20 0x42 0x65 0x63 0x61 0x75 0x73 0x65 0x20 0x4f 0x63 0x74 0x20 0x33 0x31 0x20 0x69 0x73 0x20 0x44 0x65 0x63 0x20 0x32 0x35 0x2e
Required options
These options will be used automatically if you select this example.
Prepend 0x to all hex numbers.
Pad single digit hex numbers with a 0.
Inserting extra spaces between hex.
Create a Single Hex Number from ASCII
In this example we convert an ASCII string to a single, very large hexadecimal value.
Everything is a number.
45766572797468696e672069732061206e756d6265722e
Required options
These options will be used automatically if you select this example.
Prepend 0x to all hex numbers.
Pad single digit hex numbers with a 0.
Inserting extra spaces between hex.
Convert ASCII Art to Hex
In this example we convert ASCII art of a surprised moose to a hex number.
\|/ \|/ \ / \_/ ___ ___ o o-' ''' ' O -. |\ | |'''| | || | | || || " "
5c 7c 2f 20 20 20 20 5c 7c 2f 0a 20 20 5c 20 20 20 20 2f 0a 20 20 20 5c 5f 2f 20 20 5f 5f 5f 20 20 20 5f 5f 5f 0a 20 20 20 6f 20 6f 2d 27 20 20 20 27 27 27 20 20 20 27 0a 20 20 20 20 4f 20 2d 2e 20 20 20 20 20 20 20 20 20 7c 5c 0a 20 20 20 20 20 20 20 20 7c 20 7c 27 27 27 7c 20 7c 0a 20 20 20 20 20 20 20 20 20 7c 7c 20 20 20 7c 20 7c 0a 20 20 20 20 20 20 20 20 20 7c 7c 20 20 20 20 7c 7c 0a 20 20 20 20 20 20 20 20 20 22 20 20 20 20 20 22
Required options
These options will be used automatically if you select this example.
Prepend 0x to all hex numbers.
Pad single digit hex numbers with a 0.
Inserting extra spaces between hex.
Pro tips Master online ascii tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlineasciitools.com/convert-ascii-to-hexadecimal?input=Why%20do%20geeks%20always%20mix%20up%20Halloween%20and%20Christmas%3F%20Because%20Oct%2031%20is%20Dec%2025.&prefix=true&padding=true&spacing=true
All ascii tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly convert ASCII characters to binary numbers.
Quickly convert binary numbers to ASCII characters.
Quickly convert ASCII chars to octal values.
Quickly convert octal values to a ASCII chars.
Quickly convert ASCII values to decimal numbers.
Quickly convert decimal numbers to ASCII values.
Quickly convert ASCII symbols to hexadecimal values.
Quickly convert hexadecimal numbers to ASCII symbols.
Quickly convert ASCII to arbitrary base numbers.
Quickly convert numbers of arbitrary base to ASCII.
Quickly draw a 7-bit or extended 8-bit ASCII table.
Quickly draw ASCII art from the given text input.
Quickly create an image from ASCII text.
Quickly convert ASCII text to HTML escape codes.
Quickly convert HTML entities to ASCII text.
Quickly convert ASCII to URL-encoding.
Quickly convert URL-encoded ASCII back to ASCII.
Quickly convert an ASCII string to raw bytes.
Quickly convert raw bytes to an ASCII string.
Quickly convert ASCII bytes to UTF8 characters.
Quickly convert UTF8 characters to ASCII bytes.
Quickly encode ASCII text to Morse code.
Quickly decode Morse code back to ASCII.
Quickly base64-encode ASCII string.
Quickly base64-decode previously encoded ASCII string.
Quickly convert ASCII to a Data URL.
Quickly convert a Data URL to ASCII.
Quickly make all ASCII characters lowercase.
Quickly make all ASCII characters uppercase.
Quickly randomize the case of each ASCII letter.
Quickly flip one or more bits in every ASCII character.
Quickly shuffle bits in every character of an ASCII string.
Quickly generate random ASCII characters.
Quickly convert ASCII data to Unicode symbols.
Quickly convert Unicode symbols to ASCII data.
Coming soon These ascii tools are on the way
Convert ASCII to JPG
Create a JPG image from ASCII art.
Convert JPG to ASCII
Create ASCII art from a JPG image.
Convert ASCII to PNG
Create a PNG image from ASCII art.
Convert PNG to ASCII
Create ASCII art from a PNG image.
Convert ASCII to Chemical Elements
Use chemical element names for ASCII values.
Convert ASCII to EBCDIC
Convert ASCII charset to EBCDIC charset.
Convert EBCDIC to ASCII
Convert EBCDIC charset to ASCII charset.
Rotate ASCII Characters
Rotate ASCII chars to the left or to the right.
Randomize ASCII Order
Randomize the order of ASCII characters.
Reverse ASCII Characters
Reverse the order of ASCII chars.
Convert ASCII to Integer
Convert ASCII characters to integers.
Convert Integer to ASCII
Convert integers to ASCII values.
Convert ASCII to Keycodes
Convert ASCII characters to keyboard keycodes.
Convert Keycodes to ASCII
Convert keyboard keycodes to ASCII values.