HEX2DEC Production Labeling System

A high-performance desktop application designed for manufacturing environments, enabling operators to instantly convert HEX-encoded serial numbers into decimal format and print standardized Zebra labels with a single scan.

Built with Python and Tkinter, the system combines ease of use, reliability, and full customization for production line requirements.

Everything started with a customer request to convert a MAC address from a hexadecimal format to a decimal format.
The customer takes the last 7 characters of the hexadecimal number and converts them into a 9 digit decimal number.

You can find my code here: GitHub

Operation:

When the software is launched for the first time, an “HEX2DEC Label” folder and a JSON file for storing data are automatically created.
As soon as the software starts, you must select the relevant printer (Active Printer). After that, you can begin scanning a HEXDECIMAL number.

If everything is valid, a “PRINT SUCCESSFUL” status will appear and a label will be printed.
At the bottom, you can see the “Last scanned serial” status, allowing the operator to verify and track the scanned number and the printed label.

If invalid characters are scanned, an ERROR message will appear.

In addition, there is a configuration panel that allows adjusting the label and selecting the number of HEXDECIMAL characters to convert.
Once the settings are saved, a JSON file is updated and stores the relevant data.

There is also a HELP window with additional explanations.

The application extracts the last N HEX characters (configurable) and automatically converts them into a zero-padded decimal value. This ensures consistent formatting across all printed labels.

70B3D5A9F00DC20A → 000901642

70B3D5A9F00DC230 → 000901680

70B3D5A9F00DC22D → 000901677

This solution was created to streamline production labeling workflows, reduce human error, and provide a fast, consistent, and reliable method for converting HEX serial numbers into machine-readable and human-readable labels during manufacturing.