onlinehextools logo

String to hex converter

World's simplest hex tool

World's simplest online string to hexadecimal numbers converter. Just paste your string in the form below and it will instantly get converted to hex values. Free, quick and very powerful. Paste a string, get a hexadecimal. Created by programmers for programmers.
announcement heads up!
We just launched a new site — Online JPG Tools — utilities for working with JPEG images. Check it out!
fullscreen fullscreen_exit
Hex Number Options
When selected, adds 0x before every hex number.
If the hex number is one digit (such as newline), then pad it with a zero to make it two digits.
When selected, adds a space after every hex number.
String to hex converter tool What is a string to hex converter?
This tool converts strings to hexadecimal numbers. It first splits the string into chars and then displays the hex codes of each character. Hexabulous!
String to hex converter examples Click to use
Convert a String to a Hex Numbers
This example converts a string to a hexadecimal number.
Only aliens with sixteen fingers can read hex.
0x4f 0x6e 0x6c 0x79 0x20 0x61 0x6c 0x69 0x65 0x6e 0x73 0x20 0x77 0x69 0x74 0x68 0x20 0x73 0x69 0x78 0x74 0x65 0x65 0x6e 0x20 0x66 0x69 0x6e 0x67 0x65 0x72 0x73 0x20 0x63 0x61 0x6e 0x20 0x72 0x65 0x61 0x64 0x20 0x68 0x65 0x78 0x2e
Required options
These options will be used automatically if you select this example.
When selected, adds 0x before every hex number.
If the hex number is one digit (such as newline), then pad it with a zero to make it two digits.
When selected, adds a space after every hex number.
Convert Another String to Hexadecimal
This example converts the English alphabet and English digits to hexadecimal. It also disables the hexadecimal base option and it disables space after hexadecimals.
abcdefghijklmnopqrstuvwxyz0123456789
6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839
Required options
These options will be used automatically if you select this example.
When selected, adds 0x before every hex number.
If the hex number is one digit (such as newline), then pad it with a zero to make it two digits.
When selected, adds a space after every hex number.
Pro tips Master online hex 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://onlinehextools.com/convert-string-to-hex?input=Only%20aliens%20with%20sixteen%20fingers%20can%20read%20hex.&prefix=true&padding=true&spacing=true
All hex 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 hexadecimal numbers.
Quickly convert hexadecimal values to ASCII characters.
Quickly convert UTF8 characters to hexadecimal values.
Quickly convert hexadecimal values to UTF8 characters.
Quickly generate random hexadecimal values.
Quickly randomize the order of digits in a hex number.
Quickly rotate digits in a hex number to the left or to the right.
Quickly reverse the order of digits in a hex number.
Quickly create an image from a hexadecimal number.
Quickly convert hexadecimal numbers to Roman numerals.
Quickly convert Roman numerals to hexadecimal numbers.
Quickly convert hexadecimal numbers to decimal numbers.
Quickly convert decimal numbers to hexadecimal numbers.
Quickly convert hexadecimal numbers to octal numbers.
Quickly convert octal numbers to hexadecimal numbers.
Quickly convert hexadecimal values to binary values.
Quickly convert binary values to hexadecimal values.
Quickly convert a string to hexadecimal values.
Quickly convert hexadecimal values to a string.
Quickly convert an IP address to a hex IP address.
Quickly convert a hex IP address to a human-readable IP address.
Quickly convert hexadecimal colors to RGB colors.
Quickly convert decimal RGB colors to hexadecimal colors.
Quickly convert hexadecimal values to Gray code.
Quickly convert Gray code to hexadecimal values.
Quickly convert hexadecimals to binary coded decimals.
Quickly convert binary coded decimals to hexadecimals.
Quickly calculate the sum of a bunch of hex numbers.
Quickly calculate the product of a bunch of hex numbers.
Quickly convert plain text to hexadecimal values.
Quickly convert hexadecimal values to plain text.
Quickly calculate bitwise AND of a bunch of hex numbers.
Quickly calculate bitwise NAND of a bunch of hex numbers.
Quickly calculate bitwise OR of a bunch of hex numbers.
Quickly calculate bitwise XOR of a bunch of hex numbers.
Coming soon These hex tools are on the way
Convert Hex to Arbitrary Base
Convert a hexadecimal to arbitrary base from 2 to 64.
Hex Editor
View and edit files in a browser-based hex editor.
Hexdump
Create a hex dump of files in your browser.
Create a File from Hex Values
Convert hexadecimal numbers to a file.
Convert a Hex Color to RGBA
Convert a color in hex #rrggbbaa format to RGBA format.
Convert an RGBA Color to Hex
Convert a color in rgba(r,g,b,a) format to #rrggbbaa hex format.
Convert a Hex Color to CMYK
Convert a color in hex #rrggbb format to CMYK format.
Convert a CMYK Color to Hex
Convert a color in CMYK format to #rrggbb format.
Convert Characters to Hex HTML Entities
Convert characters to hexadecimal #&x HTML entities.
Convert Hex HTML Entities to Characters
Convert HTML entities in #&x hex format back to characters.
NOR Hex Numbers
Calculate bitwise NOR of hexadecimal numbers.
XNOR Hex Numbers
Calculate bitwise XNOR of hexadecimal numbers.
Invert a Hex Number
Find bitwise inverse of a hexadecimal value.
Invert a Hex Color
Find the inverse hexadecimal color.
Swap Hex Endianness
Change endianness of a hex number.
Extract a Digit from a Hex Number
Extract n-th nybble from a hexadecimal number.
Convert IPv6 to Hex
Convert an IPv6 address to hexadecimal form.
Convert Hex to IPv6
Convert an IPv6 address in hexadecimal form back to human readable form.
Convert Little Endian Hex to Big Endian Hex
Convert a hex number in little endian byte order to big endian.
Convert Big Endian Hex to Little Endian Hex
Convert a hex number in big endian byte order to little endian.
Convert a Floating Point Number to Hex
Find the hex representation of a floating point number.