{"id":508,"date":"2012-11-23T10:36:16","date_gmt":"2012-11-23T10:36:16","guid":{"rendered":"http:\/\/www.bardecode.com\/en1\/?p=508"},"modified":"2013-03-05T11:53:35","modified_gmt":"2013-03-05T11:53:35","slug":"code-25-barcode-specification","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/en1\/code-25-barcode-specification\/","title":{"rendered":"Code 25 barcode specification"},"content":{"rendered":"<p>Example:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/code25_eg.jpg\" alt=\"\" border=\"0\" \/><\/p>\n<p>Code 2 of 5 is a popular barcode for encoding numeric data.<\/p>\n<p>Key features:<\/p>\n<ul>\n<li>2 different width of bar\/space.<\/li>\n<li>Symbol set consists of digits 0-9<\/li>\n<li>Each character is made up of 2 wide and 3 narrow elements.<\/li>\n<li>Start sequence is narrow bar, narrow space, narrow bar, narrow space.<\/li>\n<li>End sequence is wide bar, narrow space, narrow bar.<\/li>\n<li>Characters are encoded in pairs consisting of 5 bars and 5 spaces. The bars encode the first character of a pair and the spaces encode the other.<\/li>\n<li>No spaces between the pairs of characters ensure a higher density than non-interleaved variants.<\/li>\n<li>The number of bars plus 1 must be divisible by 5.<\/li>\n<li>Optional checksum character.<\/li>\n<li>An odd number of characters should be padded with a leading zero before encoding.<\/li>\n<\/ul>\n<p><strong>Specification:<\/strong><\/p>\n<p>Due to the nature of the interleaved format the Visual Pattern shows the character as it would appear in the bars of a character pair. The spaces are not set for any particular character.<\/p>\n<table border=\"0\" cellspacing=\"10\">\n<tbody>\n<tr>\n<td>Symbol<\/td>\n<td>Narrow\/Wide Pattern<\/td>\n<td>Visual Pattern<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>NNWWN<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>WNNNW<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>NWNNW<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>WWNNN<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>NNWNW<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>WNWNN<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>NWWNN<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>NNNWW<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>WNNWN<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>NWNWN<\/td>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Note that the petterns for the above characters exactly match the black bars for the same characters in Code 39.<\/p>\n<p>Example: The character pair 58 would be encoded by the pattern enclosed in the following box:<\/p>\n<table border=\"2\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ws.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/wb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ws.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/nb.jpg\" alt=\"\" border=\"0\" \/><img decoding=\"async\" src=\"http:\/\/bardecode.com\/images\/ns.jpg\" alt=\"\" border=\"0\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Checksum Calculation:<\/strong><\/p>\n<ol>\n<li>Identify odd\/even character positions. The right hand most character is always even.<\/li>\n<li>Sum all the characters in odd positions.<\/li>\n<li>Sum all the characters in even positions and multiply by 3.<\/li>\n<li>Add the values from steps 2 and 3<\/li>\n<li>Determine the smallest value, which when added to result of step 4, gives a multiple of 10. This is the cheksum character.<\/li>\n<\/ol>\n<p>Example:<\/p>\n<p>To calculate the checksum for the number 33589<\/p>\n<p>Sum of odd characters = 3 + 8 = 11<\/p>\n<p>Sum of even characters = 3 + 5 + 9 = 17 X 3 = 51<\/p>\n<p>11 + 51 = 62<\/p>\n<p>62 + 8 = 70 (which is divisible by 10), so the checksum character is 8.<\/p>\n<p>Note that if the original number of digits is even then a leading zero should be added either before or after the checksum calculation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example: Code 2 of 5 is a popular barcode for encoding numeric data. Key features: 2 different width of bar\/space. Symbol set consists of digits 0-9 Each character is made up of 2 wide and 3 narrow elements. Start sequence is narrow bar, narrow space, narrow bar, narrow space. End sequence is wide bar, narrow<\/p>\n<p><a href=\"https:\/\/www.bardecode.com\/en1\/code-25-barcode-specification\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":509,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,18],"tags":[38,36,19,37,39,35],"class_list":["post-508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-barcode-specification","category-knowledge-base","tag-2-of-9","tag-36","tag-barcode","tag-code-29","tag-numeric-data","tag-specification"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/508"}],"collection":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/comments?post=508"}],"version-history":[{"count":3,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/508\/revisions"}],"predecessor-version":[{"id":511,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/508\/revisions\/511"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media\/509"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media?parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/categories?post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/tags?post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}