格 千格 KiloCell

Full guide to hexadecimal conversion: how Hex, Decimal, Base64 and Colours are connected

Update 2026-08-09 About 13 minutes development tools How-to

When you see 0xFF in the log, the design to #1E40AF, the interface with another series of Base64 or a decimal port, the first reaction is often to "show it first to hexadecimal." This Guide distinguishes between Hex and the problems that hexadecimal, Base64, and colours solve, and takes a replicable step against the milligram converter and the tools involved, and gives a false table and real alignment scene to avoid mixing Hex as encryption or three "hex-like" types of things.

Use tools immediately Open altruistic converter
Open tool →

The core sentence.

Hexadecimal is the representation of the same integer (or byte) and not the encryption; And Base64, color token, but each serves different routes.

"How does this number go with hexadecimals, how much hex is equal to?" A MasterCurrent。 See the original byte layout of the file or text, used Hex Viewer。 To insert any bytes into text-only fields, use Base64。 Colour #RRGGBB ♪ And the rotation is first ♪ color converter。 Here you go on to "The Concept Boundary Quick Enter the Agreed Quick Action Step Queue of Error Sheets Queue Queue Que Que Que Que Que Que Que à Faq Que à Que Que à Que Que Que Que Que à Que Que Que Que Que Que à Que Que Que Que Que Que Que Que Que Que Que Que Que Que Que Que Que Que Que à Que Que Que Que Que Que Que Que Que à Que Qu ' Que Que Que Que Qués Que Que Que Que Que Qu Qu Qu Q.

Hex, what does that mean?

Hexadecimal, often base 16) 0-9 and A-F(Case equivalent normally) indicates a value. Every hex corresponding 4 binary bits, therefore:

  • 1 bytes (8 bit) = 2 hex characters, e. g. Decimal 255 → FF
  • 2 bytes = 4 hex characters, e. g. 65535 → FFFF
  • Colour 24 bit Common 6 hex characters:#RRGGBB

It's the solution. Human readable.: Shorter than binary, closer to the byte border than decimal. It's... No, no. Change the value itself, too. No, no. Provide confidentiality - anyone can put FF Revert 255。

Relationship to decimal, binary

Evolution Base Common writing Intuition.
Binary 2 0b1101 / 1101 Circuit and bit operation
Octahedron 8 0755(Unix permission) One bundle of binary per 3-bit
Decimal 10 255 Human daily count
Hexadecimal 16 0xFF / FF One byte-friendly set of binary per 4-bit

The station converter allows you to select the "original evolution" on the side of the input, and the output side is fixed to give two/ eight/ ten/ sixteen-four sets of results, which can be used for custom 2-36 digits; Make it happen. BigIntThe big integers don't look like that. Number That's over the date. 2^53-1 Throw precision after.

The difference between Base64 (very easy to mix)

Dimensions Hex Base64
Letter List 16 symbols 64 symbols (+fill) =)
Typical expansion. 1 byte →2 characters (approximately 100% text expansion) 3 byte →4 characters (approximately 33% swelling)
Main uses Debugdump, colour, Hash Summary Presentation Text channel for binary
Encryption Yes Yes
Is it reversible? Yes. Yes.

Same byte You can write both hex and Base64, but the string is completely different. For example, bytes 0x48 0x69(ASCII HiHex is 4869Standard Base64 is SGk=。 The use of the Base64 string hex to "turn the decimal" will fail or get meaningless results - because the alphabet is different from the grouping rule.

Relationship to Color HEX

CSS #1E40AF Looks like... Hexadecimal, but semantic. 24 bit colours for three 0–255 channelsNot "a single big integer." Of course you can. 1E40AF Consider it integer. 1989935 The more common needs in the engineering are:

  • #1E40AF ↔ rgb(30, 64, 175) ↔ hsl(...)(Colour semantics)
  • Or put one of them in the car. Integer constant(port, permission mask, number) View between decimals and hex (numeric syntax)

Colour semantics, please remove colour converters; Only in the pure syntax do you enter the converter. The problem of mixing can be difficult to find, such as "the right color but wrong business numbers".

Enter output engagement (type written in the inter-coding document)

On the MCX, the agreement can be summarized as:

  1. Input Box: Fill in "numbers in the index" without tape 0x、0b, spaces, line breaks, commas (the decimal path strips the commas, the rest of the evolution is based on the alphabet).
  2. Original IDI drop down: 2, 8, 10, 16, 32, 36; There are also custom 2-36.
  3. Results Grid: give 2/VIII/X/16 in real time; Cards can be copied by clicking.
  4. Case of letters: to be treated in capital letters when decomposition; Output hex to uppercase.
  5. Illegal numbers: The value of a character ≥ when moving forward → page hints 'unvalid input format '.
  6. Large:BigInt Paths, suitable for long ID, big mask; Still. Non-negative integers Semantic, not floating point, not patch display.

Invalid / Invalid Example (value path)

Input Could not close temporary folder: %s Expectations Notes
255 Decimal hex FF Default Presentation Value
FF Hexadecimal Decimal 255 Case-like
ff Hexadecimal Decimal 255 Internal Capitalisation
0xFF Hexadecimal Failed or illegal Ham x0-9A-F
1101 Binary Decimal 13 Do not be decimal.
755 Octahedron Decimal 493 Unix permissions often write like this
G Hexadecimal Illegal G is legal only if it's based on 16
ZZ Tridecimal Big integer. Base36 Short ID scene

Bytes vs integer: two different questions

  • Integer:255 ↔ FF - The main battlefield of the ultimatum.
  • Bytes / File Contents: A long string 48 65 6C 6C 6F Or the number of files -- this is the Bytes-extended hex dump, apply Hex viewer to see offsets against ASCII, instead of treating the whole string as a hyperinteger (unless the agreement expressly states "the whole part is a large integer”).

To post the whole "hex dump" section of "16 byte" to the converter, it is an astronomical number that is almost useless for the number of excavators; Each byte should be viewed in a segment or with a viewer.

What do you do on the 1,000?

Home Tool Page:A MasterCurrent。 Calculates local completion in browsers; Demonstration data can be used at random, producing keys, real user identifications and not staying on the public computer clipboard for long periods.

Decimal hexadecimal (most common)

  1. Open /tools/converter/number-base-converter.html。
  2. Yes. Enter the value and select the original evolution enter, for example, 255。
  3. Downselect Decimal (Base 10)(Default is yes).
  4. Found in the bottom result grid Hexadecimal (Base 16)You should see it. FF。
  5. The blogger says that the result of the protest is not a single one.Click to copy The logo will be "reproduced!" for a short time.
  6. If binary/octimal is also required, the same screen is given and no secondary conversion is required.

Hexadecimal → Decimal

  1. Enter Box 1A or FF"Don't bring it with you. # or 0x)。
  2. Original Evolution Selection Hexadecimal (Base 16)。
  3. The decimal card should be shown separately 26、255。
  4. If the hint is invalid: check if the space is mixed, the Chinese tab is marked, or G - No, no, no.

C. Custom Base (with Base36 short ID)

  1. Middle values are obtained first in Decimal or Hexadecimal or directly in Targeted Anthropogenic.
  2. Bottom Custom progress (2-36) Fill 36(or 12 Wait.
  3. (a) The right-hand purple result is expressed in this digit; Letter A-Z - That's 10 to 35.
  4. Short chains, invitation codes, Base36;don't wantPut it in the base 64 alphabet.

D. Collaboration with Base64, Colour, Hash (cross tools)

You have something in your hands. What do you want to do first? Who else?
Integer constant / mask / port Heat-to-Look Page
Small icon to enter JSON Document → Base64 Base64
#RRGGBB Design token Colour Interchange color converter
Download package checksum (64 bit hex) Summary comparison Hash Generators
Unknown header Look, dump. Hex Viewer

Hex string is not Base64 per se. If the interface is Base64, it should be first source bytes and then encoded; Can't put FF Four characters (if text) are mixed with "single bytes of value 255" - text FF UTF-8 is two bytes 0x46 0x46, with single bytes 0xFF Totally different.

Capacity boundaries (relative to real pages)

  • Yes: II/VIII/X/16 Real-time grid, Base32/36 preset, custom 2-36, click copy, BigInt large, local calculations.
  • None: Float/decimal digitized, symbolic patch to visualize, bulk file hex dump, one key "Hex bytes ↔ Base64", colour slider (please use colour page).
  • No substitute: Encryption, signature, permission control; Hash, use the Hash tool, and transfer the code, use Base64/URL.

Common error and contrast

phenomena Common causes Processing
Hint "inactive input format" Characters that are not current digits; Tie 0x、#、spaces Clear prefixes and blanks; Checking down to pull
I thought... 1101 It's the Decimal 1101. It's actually been chosen or understood on binary basis. Look at the pull; Binary 1101= Decimal 13
0xFF Turn Failed x Illegal Keep Only FF
Colour #1E40AF When the whole number goes through the business, it's not right. RGB channel required, not a single integer Change to Color Converter
64 bits hex of SHA-256 as "decryptable secret" Hash is invincible. Only compares to the same, with the Hash tool to rerun
Base64 Thread to Page Letters + / or URL-safe - _ Using Base64 tools; This page only takes letters based on numbers
Long hex dump whole turn decimal Misappropriate byte sequences as an integer number View by offset with Hex Viewer
The number of integers above JS is wrong elsewhere It's on the other end. Number Not BigInt/ Big Bank This Page BigInt results are copied with strings and large ends
Octahedron Permissions 755 Decimal Unelected Oct Original I.D. 8, decimal 493, then bitualized.
Copying back-to-end case sensitive verification failed Some systems require lowercases, hex Unify after Paste toLowerCase,Final Uppercase

Suggested error order

  1. Question first: This is An integer number、A byte byte byd.Or is it? Colour token? The three tools are different.
  2. Question: Is the alphabet 0-9A-F, or Base64/Base64URL?
  3. Re-clean prefix:0x、#, spaces, quotation marks, line breaks.
  4. The last thing I suspected was that the algorithm was wrong -- most of the time, the agreement was not consistent.

Real work scenarios

1. Permission mask and feature switches

Backend Document Writing 'Performance Positions ' 0x04 "Exports, but the front logs are not counting." 4。 - Put it on. 4 Confirm hexadecimal input converter 4; - Put it on. 80 Hex should be 50The ‘Four’s ‘Four’ is the only one that has a “right” to fight. The combination is accompanied by a decimal and hex in the table, reducing the ambiguity of the word "that" in the text.

Design token into code, but no error in tool

Designer Description #b8ff78。 If your job is to write CSS, open the color converter and get it. rgb(14, 165, 233) - Yeah. Only if the protocol provides for "Colour to pass by 24-bit integer" 0EA5E9 When hexadecimal integer to decimal 959977— and write in the document bytes and whether or not to include Alpha.Default to be done by color semantics, do not default to big integers.

3. Checksum and Hashi display

Software Release Page SHA256: e3b0c44298fc1c14...(Example shapes). This is... Hash's hex code, the purpose is to compare, not restore, the document. Code local files with the Hash generator, and compare strings manually or in scripts; The ulcer will at most confirm "what is a short prefix integer" and have no business value for a complete 64 character summary.

4. "Hex and Base64" in the bag.

The header of HTTP or the middle of JWT is always Base64URL. If a colleague misreads "this is hex", then quickly identify it with the alphabet: + / Or a lot. a-z mixed and inclusive - _, priority is given to the Base64; If it's almost just... 0-9A-F and the length is even, like hex bytes. The wrong tool is a half-hour waste.

5. Short ID and Base36

The operation is "shorter than UUID's invitation code". Use the converter to transfer the large decimal sequence number to Custom 36 digit- Get a short string with letters. Note: Base36 No, it's not. Encryption, enumerable; The high security scene still has to be subject to random and speed limits. Yeah. No, it's not. Base64, character set and filling rules are different.

6. The magic of documents is visible at first glance.

Common header of PNG hex 89 50 4E 47。 Upload files with Hex viewer to see the hexadecimal columns and ASCII offset 0; Don't put it on me. 89504E47 The whole of the video was thrown into the integer converter and the decimal "comparator net" — if the network is given to Hashi, it should be Hashi. If it's a magic note, you should deal with byte sequences.

When to use who: Tool selection

Tasks Priority tool Don't use it...
Integer number between 2/8/10/16/36 BaseConverters -Screw Base64, color, Hashi.
Text/File ↔ Base64, Data URI Base64 When encrypted or when hex dump
# / rgb / hsl color converter Parsing bytes of files
Byte layout, magic number of files/text Hex Viewer Instead of Hashi checking.
MD5/SHA Fingerprints Hash Generators Decrypt back to the original
Query String Security Character URL encoding Digital translation

Decision-making:Numbers are on an edifice page, colour pages, Base64, Hash, and layouts on a Hex viewer.

Security and privacy

  • Hex / Base64 It's all reversible., pasting is another way to display the express form.
  • The blogger says that the government is not going to make it easier for the government to change the name of the meeting and the ID number to "hex." Transfer by TLS, stored by access control and real encryption or Hash.
  • The KiloCell of pages focused on local processing, and still recommended that empty input be exhausted to avoid shoulder-stalking and sharing screen residues.
  • Hash's hex displays are used for integrity, and the manipulation is based on a security comparison process, not on "looks like a mess."

FAQ

Which of the hexadecimals and binarys is more "bottom"?

The bottom storage remains at bits; Binary is the closest circuit, hex is the writing habit for every 4 bits. Debug the protocol to write hex for short and binary to see a bit. This converter is both, according to the particle scale you're explaining.

Why did my `FF ' and others' ff ' fail?

Most solvers are not sensitive to case size, but some check scripts are all string-based. Uniformly regulate (e.g. document specifies lowercase) and then deal with it after copying. The kilo-digital output of the capital master case is exported to the case sensitive system before you convert it.

Can you just turn the color #FF's # directly into Base64?

Can't.#FFFFFF It's color token; Base64 has its own alphabet and fill. If you want to... Pixels bytes Passes to interface, and you should get the original byte or file and Base64 instead of using the six-digit colour character as the Base64 payload.

What's the big integer going to be 1,000 at the end of Excel or some language?

Float point or fixed width integer spills. This page gives a precise indication by string in BigInt; The end is to be transmitted in large numbers or as a string, not before being converted to IEEE 754 double precision and then back.

`0755 ' and `755 '

Writing permissions 755 I'm always in the mood. Explained as octal (a) Bitmarks; If you do not have a decimal 755 then you can do binary, bit pattern and Unix rwxr-xr-x Not the same type of a taste. Select "Oct" input by visible in converter 755, watch Decimal and Binary cards, and then... chmod Semantic contrast.

Why is Hash the result long?

Because the summary is a fixed-length bittline, it is the two characters hex that are the most convenient bytes for humans to compare to scripts. It is still not encrypted or the input target for the evolution; Generated with a Hash generator, verified with a string comparison.

Custom 37 progress?

Page Limit 2-36, with Common 0-9A-Z The alphabet is identical. Beyond the need for a self-contained alphabet and library, it is outside the scope of this tool.

Overlap with Hex Viewer?

No overlap. The ulcer answers: "This Number The blogger says that the "show" is not a "show" in the other way." Hex Viewer answers "This part" Contents "What is every byte, what is next to ASCII?" The whole question is the former, while the document/buffer zone is the latter.

Short list before we do it.

  • Disaggregated: Integer / Byte dump / Colour token / Base64 payload.
  • Input removed 0x、#, spaces and quotation marks (as you like).
  • Original digit drop-down corresponds to paper document (especially octal privileges).
  • Large or string is used for large-numbered peer-to-ends, rather than normal double precision.
  • The data that need to be kept confidential is not dependent on the "turn hex" Can not get folder: %s: %s
  • Colours and Hashi scenes have been changed to a specific tool rather than a hard-on page.

Summary

Hexadecimal is the "second writing" of the highest frequency in development: it allows byte borders to read, but it is also the easiest to mix with Base64, colour, and Hashi. Thousands of. A MasterCurrent Responsible Integer Accurate mutual view between 2-36 digits; Byte layout, text delivery, colour and fingerprints are given to Hex viewer, Base64, Colour Conversion and Hash tool. The majority of the problems of "turning back" disappear at the time of entering the agreement.