HEX2BIN Function in Excel: Hexadecimal to Binary

⏱ 1 min readUpdated 28 September 2026

EngineeringLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Related functions

HEX2BIN converts hex to binary text — each hex digit becomes four bits.

Syntax

=HEX2BIN(number, [places])
Argument What it means
places Pad to this many digits.

Examples

Example 1

=HEX2BIN("F", 8)

Returns 00001111.

HEX2DEC · DEC2BIN

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong