Tools
English

Neogie Hex · Developers and SEO

Text to Hex and Hex to Text Converter

Type text to see its bytes, or paste hexadecimal to get the text back.

Settings

Everything happens in your browser: nothing you type is sent.

Hexadecimal in a nutshell

Hexadecimal counts in base 16, with the digits 0 to 9 and then the letters a to f. Two of these signs are enough to write one byte, from 00 to ff. It is the usual way to read the contents of a file, a network address, a colour or a data frame.

From text to bytes

Text becomes bytes through a character set. In UTF-8, the letter A gives 41, é gives c3 a9 and an emoji takes four. The “Text encoding” setting also offers Windows-1252 and UTF-16.

You can choose the layout: spaces, no separator, colons, a 0x prefix for source code, or \x for a string literal. Files up to 5 MB can be converted, and decoded bytes can be downloaded.

Reading hexadecimal back

Paste the values into the second box: spaces, commas, colons, hyphens, line breaks, 0x and \x are accepted, in upper or lower case. A foreign sign or an odd group is reported with its position. If the bytes are not text, they are shown as they are.

It is not encryption

Writing text in hexadecimal does not protect it: the conversion is public and instant in both directions.

Frequently asked questions

Why two digits per character, and sometimes more?

Each byte is written with two digits. ASCII characters fit in one byte; accents, symbols and emoji need more in UTF-8.

How do I convert a decimal number to hexadecimal?

This tool converts text and bytes: the text “10” gives 31 30. It does not convert the value of a number.

What does 0x mean?

It is the prefix many programming languages use to announce a hexadecimal number: 0x41 is 65.

Is my data sent anywhere?

No. Text and files are processed in your browser. Only your settings are kept on your device.

Similar tools

Neogie SnippetSERP Snippet Preview ToolType a title and a description: the simulated result shows where they will be cut off. Neogie Base64Base64 Encoder and Decoder: Text, Files and JWTType on one side, the result appears on the other. Text, files and JWT tokens, with nothing uploaded. Neogie CRC32CRC-32 Calculator for Text and FilesThe checksum of a text as you type, or that of a file you want to compare. Neogie FileDiffCompare two files or folders: text and bytesDrop two files or two folders: differences appear at once, by line for text and by byte for everything else. Neogie BinaryBinary Translator: Text to Binary and BackType a message to see it in 0s and 1s, or paste binary to read it. Neogie PunycodePunycode Converter for Internationalized Domain Names (IDN)Turn a domain name with accents or other scripts into its “xn--” form, and back. Neogie Ascii85Ascii85, Z85 and Base85 Encoder and DecoderText or files to Base85 and back: five characters for every four bytes. Neogie Base32Base32 Encoder and DecoderText or files to Base32 and back, with the three most used alphabets. Neogie Base58Base58 and Base58Check Encoder and DecoderText or files to Base58 and back, with the Base58Check checksum if you want it. Neogie URLURL Encoder and Decoder (Percent-Encoding)Type on one side, the other fills in: addresses, parameters and form data, with every part spelled out. Neogie EntitiesHTML Entity Encoder and DecoderShow code or special characters without breaking the page: the result follows your typing. Neogie CSSCSS Formatter, Checker and MinifierPaste your style sheet: it is tidied up or compacted, and errors are reported. Neogie HTMLHTML Formatter, Checker and MinifierPaste your code: it is indented or compacted instantly, and structural errors are reported. Neogie JSONJSON Formatter and Validator OnlinePaste your JSON: it is checked and tidied up instantly, with the line and column of every error. Neogie SQLSQL Formatter Online: Indent and MinifyPaste a one-line query: it comes out split into clauses, ready to review. Neogie XMLXML Formatter and Validator OnlinePaste your XML: it is checked and indented instantly, with the line and column of the first error. Neogie MetaMeta Tag and Open Graph GeneratorFill in the fields: the preview and the code to paste into your page update instantly. Neogie RobotsRobots.txt Generator and TesterBuild the rules for search engine crawlers, then check which addresses they can visit. Neogie SitemapXML Sitemap Generator from a URL ListPaste your page URLs: your XML sitemap is ready to download. Neogie RegexRegex Tester Online: JavaScript Regular ExpressionsType a pattern and some text: matches and their groups are colored as you type.