Barcode - simple but too long? Maybe not

Our app needed barcode to represent serialized ID codes (positive integers). Using a font was a simple solution. An easy code to use is 3 of 9 which is readily available from Google Fonts. One issue with this code is that it is a low density code and the resulting bars can be too long to display on a 320px cell phone. So what to do… well actually an easy fix that other’s may want to use.

Change the number from Base10 to Base(x). We all think about Hex which gives us larger numbers with less character positions, but why stop there. We used Base(32). This allowed us to collapse a 12 digit number down to 8 characters and use the free 3of9 font. Now it fits!

John

1 Like