Convert Hex to BCD
Quickly convert hexadecimals to binary coded decimals. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert Hex to BCD
- 1. Paste your hex digits. Enter the hexadecimal value you want to re-encode, with or without spaces between bytes. The converter reads it as a stream of hex digits, not a raw byte count.
- 2. Set the Separator. Type whatever you want placed between each 4-bit BCD group, such as a space or a comma. Leave it blank to get one long run of binary-coded decimal digits.
- 3. Copy the BCD output. Each hex digit becomes its own 4-bit decimal-coded group in the result. Copy the output straight into firmware tables, protocol dumps or documentation that expects BCD nibbles.
When to use Convert Hex to BCD
Convert Hex to BCD takes hexadecimal digits and re-expresses each one as binary-coded decimal, the nibble format still used by real-time clocks, calculators and some serial protocols. It is for anyone reading a datasheet that reports values in BCD rather than plain binary.
- Decoding an RTC register dump. A real-time clock chip like the DS3231 stores seconds and minutes in BCD. You captured the register value in hex over I2C and need to see what the BCD nibbles actually represent.
- Working through a datasheet example. A microcontroller reference manual gives a hex byte and expects you to read it as two BCD digits. Running the byte through the converter confirms your manual nibble-splitting by hand.
- Building a test vector for firmware. You are writing unit tests for a BCD parsing routine and need known-good hex-to-BCD pairs. Generating them here is faster than working out each nibble by hand.
Examples
Letter A
Input
41
Output
0110 0101
255
Input
ff
Output
0010 0101 0101
About the Convert Hex to BCD tool
Convert Hex to BCD is a free online tool that works entirely inside your web browser. Quickly convert hexadecimals to binary coded decimals. Because the processing happens on your own device, nothing you enter is uploaded, logged or stored anywhere.
This page is one of 108 Hex utilities on EditSafely. Each one does a single job well, and all of them follow the same rule: your input stays on your machine.
You can shape the output with the Separator setting, and the result refreshes the moment you change it. 2 worked examples further down the page show exactly what the tool produces for real inputs.
Because nothing leaves your device, the tool is suitable for sensitive content such as internal documents, credentials or customer data. It also responds instantly, since every keystroke is handled on your own machine rather than by a remote API.
Frequently asked questions
Does Convert Hex to BCD cost anything?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
No data leaves your device. The whole tool is JavaScript that runs inside your browser tab, so there is no upload, no server-side processing and no log of what you did. If you disconnect from the internet after the page loads, it keeps working.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
Nothing to install and no account needed. Open the page in any up-to-date browser, including on a phone or tablet, and the tool is ready.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.