{"id":53054,"date":"2026-12-04T21:56:00","date_gmt":"2026-12-04T14:56:00","guid":{"rendered":"https:\/\/inthienthanh.com\/?page_id=53054"},"modified":"2026-12-04T21:56:02","modified_gmt":"2026-12-04T14:56:02","slug":"tao-ma-vach-code-128","status":"publish","type":"page","link":"https:\/\/inthienthanh.com\/en\/tao-ma-vach-code-128\/","title":{"rendered":"T\u1ea1o M\u00e3 V\u1ea1ch Code 128 Online Mi\u1ec5n Ph\u00ed \u2013 T\u1ea3i PNG, SVG, PDF"},"content":{"rendered":"\n<style data-wp-block-html=\"css\">\n\n\n.itt-code128{line-height:1.65;color:#1e1b2e;max-width:1080px;margin:0 auto}\n.itt-code128 *{box-sizing:border-box}\n.itt-code128 .ean-hero{text-align:center;padding:44px 20px;border-radius:24px;background:linear-gradient(135deg,#1e1b4b,#6d28d9 55%,#db2777);color:#fff}\n.itt-code128 .ean-hero h2{color:#fff;font-size:clamp(26px,5vw,42px);margin:0 0 10px}\n.itt-code128 .ean-hero span{display:inline-block;margin:4px;padding:5px 13px;border-radius:99px;background:#ffffff26;font-size:14px}\n.itt-code128 h2{text-align:center;margin:48px 0 20px;color:#1e1b2e}\n.itt-code128 .ean-box{background:#fff;border:1px solid #e9e5f5;border-radius:20px;padding:22px;margin-top:22px;box-shadow:0 10px 30px #4c1d9514}\n.itt-code128 .ean-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}\n.itt-code128 label{display:block;font-weight:600;margin:12px 0 6px}\n.itt-code128 input,.itt-code128 select,.itt-code128 textarea{display:block;width:100%;padding:11px;font:inherit;font-size:16px;border:1px solid #d8d3ea;border-radius:10px;background:#fff;color:#1e1b2e}\n.itt-code128 .ean-prev{background:#f5f3ff;border-radius:16px;padding:18px;text-align:center;min-width:0}\n.itt-code128 .ean-preview{width:100%;max-width:300px;aspect-ratio:113 \/ 82.6;margin:0 auto 10px;background:#fff;border-radius:8px;overflow:hidden}\n.itt-code128 .ean-preview svg,.itt-code128 .ean-out svg{display:block;width:100%;height:auto;margin:0 auto;background:#fff}\n.itt-code128 button{display:inline-block;padding:11px 18px;margin:4px;border:0;border-radius:10px;background:#6d28d9;color:#fff;font:inherit;font-weight:600;cursor:pointer;line-height:1.4;box-shadow:none;text-transform:none}\n.itt-code128 button:disabled{opacity:.4;cursor:not-allowed}\n.itt-code128 button:not(:disabled):hover{background:#5b21b6;color:#fff}\n.itt-code128 button:focus-visible,.itt-code128 input:focus-visible,.itt-code128 select:focus-visible,.itt-code128 textarea:focus-visible{outline:2px solid #7c3aed;outline-offset:2px}\n.itt-code128 [data-c128=\"generate\"]{margin:10px 0 4px}\n.itt-code128 .ean-msg{color:#92400e;min-height:24px;font-size:14px;overflow-wrap:anywhere}\n.itt-code128 .ean-no{font:700 20px monospace;letter-spacing:2px;overflow-wrap:anywhere}\n.itt-code128 .ean-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:2px}\n.itt-code128 .ean-out{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px;margin-top:14px}\n.itt-code128 .ean-out>div{border:1px solid #e9e5f5;border-radius:12px;padding:8px;text-align:center;font-size:13px;overflow-wrap:anywhere}\n.itt-code128 .ean-out svg{margin:6px auto}\n.itt-code128 .ean-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}\n.itt-code128 .ean-c{display:block;padding:18px;border-radius:16px;border-top:4px solid;text-decoration:none;color:#1e1b2e}\n.itt-code128 .ean-c p{margin:6px 0}.itt-code128 .ean-c em{font-style:normal;font-weight:700}\n.itt-code128 .ean-k0{background:#f5f3ff;border-color:#7c3aed}.itt-code128 .ean-k1{background:#fdf2f8;border-color:#db2777}.itt-code128 .ean-k2{background:#ecfeff;border-color:#0891b2}.itt-code128 .ean-k3{background:#fff7ed;border-color:#ea580c}\n.itt-code128 .ean-scroll{overflow-x:auto}.itt-code128 table{width:100%;border-collapse:collapse}.itt-code128 td,.itt-code128 th{padding:11px;border:1px solid #e9e5f5;text-align:left}.itt-code128 th{background:#1e1b4b;color:#fff}\n.itt-code128 details{background:#fff;color:#1e1b2e;border:1px solid #e9e5f5;border-radius:12px;padding:13px 16px;margin-bottom:10px}.itt-code128 summary{font-weight:600;cursor:pointer}\n@media(max-width:700px){.itt-code128 .ean-two{grid-template-columns:minmax(0,1fr);gap:16px}.itt-code128 .ean-box{padding:16px}.itt-code128 .ean-hero{padding:32px 14px}.itt-code128 h2{margin-top:36px}.itt-code128 .ean-grid{grid-template-columns:minmax(0,1fr)}.itt-code128 .ean-prev{padding:14px}}\n.itt-code128 .ean-preview{max-width:none;aspect-ratio:auto;min-height:155px;display:flex;align-items:center;justify-content:center;padding:8px;overflow:auto}.itt-code128 .ean-preview svg{max-width:100%;width:auto;height:auto}.itt-code128 .ean-out{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.itt-code128 .ean-no{letter-spacing:0;font-size:16px}.itt-code128 .c128-note{font-size:14px;color:#56516b}.itt-code128 .c128-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.itt-code128 .c128-cta{padding:26px;background:#1e1b4b;color:white;border-radius:18px;margin-top:30px}.itt-code128 .c128-cta h2{color:white;margin:0 0 12px;text-align:left}.itt-code128 .c128-cta a{color:white;text-decoration:underline}.itt-code128 .c128-links a{color:#4c1d95;text-decoration:underline}@media(max-width:480px){.itt-code128 .c128-fields{grid-template-columns:1fr}}\n<\/style>\n<script data-wp-block-html=\"js\" data-no-optimize=\"1\">\n(function(){\n'use strict';\nvar ROOT='[data-itt-code128=\"v1\"]', NS='http:\/\/www.w3.org\/2000\/svg', libs={};\n  function load(key, urls, ready) {\n    if (ready()) return Promise.resolve();\n    if (libs[key]) return libs[key];\n    libs[key] = new Promise(function (resolve, reject) {\n      var i = 0;\n      function next() {\n        if (ready()) { resolve(); return; }\n        if (i >= urls.length) { reject(new Error('Kh\u00f4ng t\u1ea3i \u0111\u01b0\u1ee3c th\u01b0 vi\u1ec7n ' + key + '. H\u00e3y th\u1eed l\u1ea1i ho\u1eb7c ki\u1ec3m tra CDN.')); return; }\n        var s = document.createElement('script'), done = false, timer;\n        s.setAttribute('data-no-optimize', '1');\n        s.setAttribute('data-cfasync', 'false');\n        s.async = true;\n        s.src = urls[i++];\n        function finish() {\n          if (done) return;\n          done = true; clearTimeout(timer);\n          if (ready()) resolve(); else { s.remove(); next(); }\n        }\n        s.onload = finish; s.onerror = finish;\n        timer = setTimeout(finish, 12000);\n        document.head.appendChild(s);\n      }\n      next();\n    }).catch(function (e) { delete libs[key]; throw e; });\n    return libs[key];\n  }\n  function barcodeLib() {\n    return load('JsBarcode', [\n      'https:\/\/cdn.jsdelivr.net\/npm\/jsbarcode@3.12.3\/dist\/JsBarcode.all.min.js',\n      'https:\/\/unpkg.com\/jsbarcode@3.12.3\/dist\/JsBarcode.all.min.js'\n    ], function () { return typeof window.JsBarcode === 'function'; });\n  }\n  function pdfLib() {\n    return load('PDF', [\n      'https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/jspdf\/2.5.1\/jspdf.umd.min.js',\n      'https:\/\/cdn.jsdelivr.net\/npm\/jspdf@2.5.1\/dist\/jspdf.umd.min.js'\n    ], function () { return window.jspdf ? !!window.jspdf.jsPDF : false; });\n  }\n\nfunction validate(raw){\nif(!raw.trim())return {error:'Nh\u1eadp n\u1ed9i dung \u0111\u1ec3 xem m\u00e3 v\u1ea1ch.'};\nif(!\/^[\\x20-\\x7E]{1,60}$\/.test(raw))return {error:'Ch\u1ec9 h\u1ed7 tr\u1ee3 1\u201360 k\u00fd t\u1ef1 ASCII in \u0111\u01b0\u1ee3c (kh\u00f4ng d\u1ea5u).'};\nreturn {code:raw};\n}\nfunction encode(value){\nvar data={};\nwindow.JsBarcode(data,value,{format:'CODE128',displayValue:false,margin:0});\nvar bits=(data.encodings||[]).map(function(e){return e.data;}).join('');\nif(!\/^[01]+$\/.test(bits))throw new Error('Kh\u00f4ng m\u00e3 h\u00f3a \u0111\u01b0\u1ee3c n\u1ed9i dung.');\nreturn {code:value,bits:bits};\n}\nfunction spec(model,x,h){\nvar w=(model.bits.length+20)*x;\nreturn {w:w,h:h+8,x:x,bar:h};\n}\nfunction bars(model,d,fn){\nvar b=model.bits,i=0;\nwhile(i<b.length){\nif(b.charAt(i)!=='1'){i++;continue;}\nvar j=i+1;\nwhile(j<b.length){if(b.charAt(j)!=='1')break;j++;}\nfn((10+i)*d.x,2,(j-i)*d.x,d.bar);i=j;\n}\n}\nfunction font(model,d){return Math.min(3.2,(d.w-4)\/Math.max(1,model.code.length*0.65));}\nfunction el(tag,attrs){var n=document.createElementNS(NS,tag);Object.keys(attrs).forEach(function(k){n.setAttribute(k,attrs[k]);});return n;}\nfunction makeSvg(model,d){\nvar n=el('svg',{viewBox:'0 0 '+d.w+' '+d.h,width:d.w+'mm',height:d.h+'mm',role:'img','aria-label':'Code 128 '+model.code});\nn.appendChild(el('rect',{width:d.w,height:d.h,fill:'#fff'}));\nvar g=el('g',{fill:'#000','shape-rendering':'crispEdges'});\nbars(model,d,function(x,y,w,h){g.appendChild(el('rect',{x:x,y:y,width:w,height:h}));});n.appendChild(g);\nvar t=el('text',{x:d.w\/2,y:d.bar+6,'font-family':'monospace','font-size':font(model,d),'text-anchor':'middle','xml:space':'preserve',fill:'#000'});t.textContent=model.code;n.appendChild(t);return n;\n}\nfunction raster(model,d,p){\nvar k=p\/d.x,c=document.createElement('canvas');\nc.width=(model.bits.length+20)*p;c.height=Math.ceil(d.h*k);\nvar ctx=c.getContext('2d');if(!ctx)throw new Error('Canvas kh\u00f4ng \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3.');\nctx.fillStyle='#fff';ctx.fillRect(0,0,c.width,c.height);ctx.fillStyle='#000';\nbars(model,d,function(x,y,w,h){ctx.fillRect(Math.round(x*k),Math.round(y*k),Math.round(w*k),Math.round(h*k));});\nctx.font=(font(model,d)*k)+'px monospace';ctx.textAlign='center';ctx.fillText(model.code,c.width\/2,(d.bar+6)*k);return c;\n}\nfunction addPdf(doc,model,d){\ndoc.setFillColor(255,255,255);doc.rect(0,0,d.w,d.h,'F');doc.setFillColor(0,0,0);\nbars(model,d,function(x,y,w,h){doc.rect(x,y,w,h,'F');});\ndoc.setFont('courier','normal');doc.setTextColor(0,0,0);doc.setFontSize(font(model,d)*72\/25.4);\ndoc.text(model.code,d.w\/2,d.bar+6,{align:'center'});\n}\nfunction orientation(d){return d.w>=d.h?'landscape':'portrait';}\nfunction newPdf(d){return new window.jspdf.jsPDF({unit:'mm',format:[d.w,d.h],orientation:orientation(d),compress:true});}\nfunction save(blob,name){var u=URL.createObjectURL(blob),a=document.createElement('a');a.href=u;a.download=name;document.body.appendChild(a);a.click();a.remove();setTimeout(function(){URL.revokeObjectURL(u);},3000);}\nfunction boot(root){\nif(root.getAttribute('data-c128-ready')==='1')return;\nfunction get(k){return root.querySelector('[data-c128=\"'+k+'\"]');}\nvar num=get('num'),preview=get('preview'),msg=get('message'),no=get('number'),size=get('size'),bulk=get('bulk'),out=get('out'),bmsg=get('bmsg'),bpdf=get('bpdf'),width=get('width'),height=get('height'),pixels=get('pixels'),generate=get('generate'),sample=get('sample'),make=get('make');\nif([num,preview,msg,no,size,bulk,out,bmsg,bpdf,width,height,pixels,generate,sample,make].some(function(n){return !n;}))return;\nroot.setAttribute('data-c128-ready','1');\nvar buttons=root.querySelectorAll('[data-c128-download]'),current=null,batch=[],seq=0,bseq=0;\nfunction enabled(on){buttons.forEach(function(b){b.disabled=!on;});}\nfunction dims(model){return spec(model,Number(width.value),Number(height.value));}\nfunction clear(){current=null;preview.textContent='';no.textContent='';size.textContent='';enabled(false);}\nfunction show(){\nif(!current)return;\nvar d=dims(current);preview.textContent='';preview.appendChild(makeSvg(current,d));no.textContent=current.code;\nsize.textContent='K\u00edch th\u01b0\u1edbc: '+d.w.toFixed(2)+' \u00d7 '+d.h.toFixed(2)+' mm (g\u1ed3m v\u00f9ng tr\u1eafng v\u00e0 ch\u1eef).';enabled(true);\n}\nfunction update(){\nvar token=++seq,r=validate(num.value);clear();\nif(r.error){msg.textContent=r.error;return;}\nmsg.textContent='\u0110ang t\u1ea1o m\u00e3 v\u1ea1ch...';\nbarcodeLib().then(function(){if(token!==seq)return;current=encode(r.code);show();msg.textContent='\u0110\u00e3 t\u1ea1o Code 128. H\u00e3y qu\u00e9t th\u1eed tr\u01b0\u1edbc khi in.';}).catch(function(e){if(token===seq){clear();msg.textContent=e.message;}});\n}\nfunction clearBatch(){++bseq;batch=[];out.textContent='';bpdf.disabled=true;bmsg.textContent='';}\nnum.addEventListener('input',update);num.addEventListener('change',update);\nnum.addEventListener('keydown',function(e){if(e.key==='Enter'){e.preventDefault();update();}});\ngenerate.addEventListener('click',update);sample.addEventListener('click',function(){num.value='ITT-SP-0001';update();});\n[width,height].forEach(function(n){n.addEventListener('change',function(){show();clearBatch();});});\nbuttons.forEach(function(b){b.addEventListener('click',function(){\nvar model=current;if(!model)return;var d=dims(model),p=Number(pixels.value),type=b.getAttribute('data-c128-download'),name='code128-'+model.code.replace(\/[^A-Za-z0-9_-]\/g,'_');\ntry{\nif(type==='svg'){var xml=new XMLSerializer().serializeToString(makeSvg(model,d));save(new Blob([xml],{type:'image\/svg+xml;charset=utf-8'}),name+'.svg');}\nelse if(type==='png'||type==='jpeg'){raster(model,d,p).toBlob(function(blob){if(blob)save(blob,name+(type==='png'?'.png':'.jpg'));else msg.textContent='Kh\u00f4ng xu\u1ea5t \u0111\u01b0\u1ee3c \u1ea3nh.';},type==='png'?'image\/png':'image\/jpeg',0.95);}\nelse if(type==='pdf'){pdfLib().then(function(){var doc=newPdf(d);addPdf(doc,model,d);doc.save(name+'.pdf');}).catch(function(e){msg.textContent=e.message;});}\nelse if(type==='copy'){if(navigator.clipboard){if(navigator.clipboard.writeText){navigator.clipboard.writeText(model.code).then(function(){msg.textContent='\u0110\u00e3 sao ch\u00e9p n\u1ed9i dung.';}).catch(function(){msg.textContent='H\u00e3y sao ch\u00e9p n\u1ed9i dung th\u1ee7 c\u00f4ng.';});return;}}msg.textContent='H\u00e3y sao ch\u00e9p n\u1ed9i dung th\u1ee7 c\u00f4ng.';}\n}catch(e){msg.textContent=e.message;}\n});});\nbulk.addEventListener('input',clearBatch);\nmake.addEventListener('click',function(){\nclearBatch();var token=bseq,lines=bulk.value.split(\/\\r?\\n\/).filter(function(t){return t.trim();});\nif(!lines.length){bmsg.textContent='B\u1ea1n ch\u01b0a nh\u1eadp d\u1eef li\u1ec7u.';return;}\nif(lines.length>50){bmsg.textContent='T\u1ed1i \u0111a 50 d\u00f2ng m\u1ed7i l\u1ea7n.';return;}\nbmsg.textContent='\u0110ang t\u1ea1o m\u00e3...';\nbarcodeLib().then(function(){\nif(token!==bseq)return;\nvar skipped=0;\nlines.forEach(function(line,i){\nvar r=validate(line),box=document.createElement('div'),label=document.createElement('b');label.textContent='M\u00e3 '+(i+1)+': '+line;box.appendChild(label);\nif(r.code){var model=encode(r.code),d=dims(model);batch.push({model:model,d:d});box.appendChild(makeSvg(model,d));}else{skipped++;var note=document.createElement('p');note.textContent=r.error;box.appendChild(note);}\nout.appendChild(box);\n});\nbmsg.textContent='\u0110\u00e3 t\u1ea1o '+batch.length+' m\u00e3; '+skipped+' d\u00f2ng kh\u00f4ng h\u1ee3p l\u1ec7.';bpdf.disabled=!batch.length;\n}).catch(function(e){if(token===bseq){clearBatch();bmsg.textContent=e.message;}});\n});\nbpdf.addEventListener('click',function(){\nvar items=batch.slice();if(!items.length)return;\npdfLib().then(function(){var doc=newPdf(items[0].d);items.forEach(function(item,i){if(i>0)doc.addPage([item.d.w,item.d.h],orientation(item.d));addPdf(doc,item.model,item.d);});doc.save('code128-hang-loat.pdf');}).catch(function(e){bmsg.textContent=e.message;});\n});\nupdate();\n}\nfunction init(){document.querySelectorAll(ROOT).forEach(boot);}\ninit();if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',init,{once:true});\nwindow.addEventListener('load',init,{once:true});window.addEventListener('pageshow',init);\n})();\n<\/script>\n<div class=\"itt-code128\" data-itt-code128=\"v1\">\n<div class=\"ean-hero\"><h2>T\u1ea1o m\u00e3 v\u1ea1ch Code 128 online mi\u1ec5n ph\u00ed<\/h2><p>T\u1ea1o barcode t\u1eeb ch\u1eef, s\u1ed1, SKU, m\u00e3 l\u00f4 v\u00e0 m\u00e3 qu\u1ea3n l\u00fd kho. T\u1ea3i file s\u1eafc n\u00e9t \u0111\u1ec3 thi\u1ebft k\u1ebf tem nh\u00e3n v\u00e0 in \u1ea5n.<\/p><span>Kh\u00f4ng c\u1ea7n \u0111\u0103ng k\u00fd<\/span><span>PNG \u00b7 JPEG \u00b7 SVG \u00b7 PDF<\/span><span>50 m\u00e3 h\u00e0ng lo\u1ea1t<\/span><span>T\u00f9y ch\u1ec9nh k\u00edch th\u01b0\u1edbc in<\/span><\/div>\n<div class=\"ean-box ean-two\">\n<div><label for=\"c128-value\">Nh\u1eadp n\u1ed9i dung m\u00e3 Code 128<\/label><input id=\"c128-value\" data-c128=\"num\" type=\"text\" maxlength=\"60\" autocomplete=\"off\" spellcheck=\"false\" placeholder=\"V\u00ed d\u1ee5: ITT-SP-0001\">\n<p class=\"c128-note\">H\u1ed7 tr\u1ee3 ch\u1eef kh\u00f4ng d\u1ea5u, ch\u1eef s\u1ed1, d\u1ea5u c\u00e2u ASCII v\u00e0 kho\u1ea3ng tr\u1eafng; t\u1ed1i \u0111a 60 k\u00fd t\u1ef1. Gi\u1eef nguy\u00ean s\u1ed1 0 \u1edf \u0111\u1ea7u v\u00e0 ph\u00e2n bi\u1ec7t ch\u1eef hoa, ch\u1eef th\u01b0\u1eddng.<\/p>\n<button type=\"button\" data-c128=\"generate\">T\u1ea1o m\u00e3 v\u1ea1ch<\/button><button type=\"button\" data-c128=\"sample\">Th\u1eed m\u00e3 m\u1eabu<\/button>\n<div class=\"c128-fields\"><div><label for=\"c128-width\">\u0110\u1ed9 r\u1ed9ng module X<\/label><select id=\"c128-width\" data-c128=\"width\"><option value=\"0.25\">0,25 mm<\/option><option value=\"0.33\" selected>0,33 mm<\/option><option value=\"0.5\">0,50 mm<\/option><\/select><\/div><div><label for=\"c128-height\">Chi\u1ec1u cao v\u1ea1ch<\/label><select id=\"c128-height\" data-c128=\"height\"><option value=\"15\">15 mm<\/option><option value=\"20\" selected>20 mm<\/option><option value=\"25\">25 mm<\/option><option value=\"30\">30 mm<\/option><\/select><\/div><\/div>\n<label for=\"c128-pixels\">\u0110\u1ed9 ph\u00e2n gi\u1ea3i \u1ea3nh (pixel\/module)<\/label><select id=\"c128-pixels\" data-c128=\"pixels\"><option value=\"4\">4 pixel\/module<\/option><option value=\"8\" selected>8 pixel\/module \u2013 s\u1eafc n\u00e9t<\/option><option value=\"12\">12 pixel\/module<\/option><\/select>\n<p class=\"c128-note\">K\u00edch th\u01b0\u1edbc mm \u00e1p d\u1ee5ng cho SVG\/PDF; \u1ea3nh raster gi\u1eef s\u1ed1 pixel nguy\u00ean tr\u00ean m\u1ed7i module. Kh\u00f4ng g\u00e1n DPI gi\u1ea3 \u0111\u1ecbnh. Ki\u1ec3m tra b\u1ea3n in tr\u01b0\u1edbc khi s\u1ea3n xu\u1ea5t.<\/p><\/div>\n<div class=\"ean-prev\"><div class=\"ean-preview\" data-c128=\"preview\" aria-label=\"Ch\u01b0a c\u00f3 m\u00e3 v\u1ea1ch\"><\/div><div class=\"ean-no\" data-c128=\"number\"><\/div><p class=\"c128-note\" data-c128=\"size\"><\/p><div class=\"ean-msg\" data-c128=\"message\" aria-live=\"polite\">JavaScript ch\u01b0a kh\u1edfi t\u1ea1o. N\u1ebfu th\u00f4ng b\u00e1o kh\u00f4ng \u0111\u1ed5i, h\u00e3y ki\u1ec3m tra Console.<\/div><div class=\"ean-actions\"><button type=\"button\" data-c128-download=\"png\" disabled>T\u1ea3i PNG<\/button><button type=\"button\" data-c128-download=\"jpeg\" disabled>T\u1ea3i JPEG<\/button><button type=\"button\" data-c128-download=\"svg\" disabled>T\u1ea3i SVG<\/button><button type=\"button\" data-c128-download=\"pdf\" disabled>T\u1ea3i PDF<\/button><button type=\"button\" data-c128-download=\"copy\" disabled>Sao ch\u00e9p m\u00e3<\/button><\/div><\/div><\/div>\n<h2>T\u1ea1o Code 128 h\u00e0ng lo\u1ea1t<\/h2><div class=\"ean-box\"><label for=\"c128-bulk\">M\u1ed7i d\u00f2ng m\u1ed9t n\u1ed9i dung, t\u1ed1i \u0111a 50 d\u00f2ng<\/label><textarea id=\"c128-bulk\" data-c128=\"bulk\" rows=\"7\" placeholder=\"ITT-SP-0001&#10;ITT-SP-0002&#10;LOT-20261204\"><\/textarea><p class=\"c128-note\">C\u00f3 th\u1ec3 d\u00e1n danh s\u00e1ch t\u1eeb Excel. PDF h\u00e0ng lo\u1ea1t d\u00f9ng m\u1ed9t m\u00e3 tr\u00ean m\u1ed7i trang theo k\u00edch th\u01b0\u1edbc \u0111\u00e3 ch\u1ecdn, thu\u1eadn ti\u1ec7n nh\u1eadp v\u00e0o ph\u1ea7n m\u1ec1m d\u00e0n tem.<\/p><button type=\"button\" data-c128=\"make\">T\u1ea1o m\u00e3 h\u00e0ng lo\u1ea1t<\/button><button type=\"button\" data-c128=\"bpdf\" disabled>T\u1ea3i PDF t\u1ea5t c\u1ea3<\/button><div class=\"ean-msg\" data-c128=\"bmsg\" aria-live=\"polite\"><\/div><div class=\"ean-out\" data-c128=\"out\"><\/div><\/div>\n<h2>M\u00e3 v\u1ea1ch Code 128 l\u00e0 g\u00ec?<\/h2><div class=\"ean-box\"><p>Code 128 l\u00e0 m\u00e3 v\u1ea1ch tuy\u1ebfn t\u00ednh (1D) c\u00f3 m\u1eadt \u0111\u1ed9 d\u1eef li\u1ec7u cao v\u00e0 \u0111\u1ed9 d\u00e0i linh ho\u1ea1t. M\u00e3 c\u00f3 th\u1ec3 bi\u1ec3u di\u1ec5n ch\u1eef, s\u1ed1 v\u00e0 nhi\u1ec1u k\u00fd t\u1ef1 ASCII, thay v\u00ec ch\u1ec9 ch\u1ee9a m\u1ed9t d\u00e3y s\u1ed1 c\u1ed1 \u0111\u1ecbnh nh\u01b0 EAN-13.<\/p><p>Code 128 d\u00f9ng ba b\u1ed9 k\u00fd t\u1ef1 A, B, C. B\u1ed9 A h\u1ed7 tr\u1ee3 ch\u1eef hoa v\u00e0 k\u00fd t\u1ef1 \u0111i\u1ec1u khi\u1ec3n; b\u1ed9 B ph\u00f9 h\u1ee3p v\u1edbi ch\u1eef hoa, ch\u1eef th\u01b0\u1eddng v\u00e0 k\u00fd t\u1ef1 th\u00f4ng d\u1ee5ng; b\u1ed9 C m\u00e3 h\u00f3a t\u1eebng c\u1eb7p ch\u1eef s\u1ed1 \u0111\u1ec3 ti\u1ebft ki\u1ec7m chi\u1ec1u r\u1ed9ng. C\u00f4ng c\u1ee5 t\u1ef1 ch\u1ecdn ch\u1ebf \u0111\u1ed9 ph\u00f9 h\u1ee3p cho n\u1ed9i dung ASCII in \u0111\u01b0\u1ee3c. K\u00fd t\u1ef1 ki\u1ec3m tra modulo 103 \u0111\u01b0\u1ee3c th\u01b0 vi\u1ec7n t\u1ef1 t\u00ednh, kh\u00f4ng c\u1ea7n nh\u1eadp th\u00eam.<\/p><p>Tham kh\u1ea3o <a href=\"https:\/\/www.tec-it.com\/en\/knowledge-base\/code-128\" rel=\"noopener\" target=\"_blank\">\u0111\u1eb7c \u0111i\u1ec3m k\u1ef9 thu\u1eadt Code 128<\/a>.<\/p><\/div>\n<h2>Code 128 d\u00f9ng \u0111\u1ec3 l\u00e0m g\u00ec?<\/h2><div class=\"ean-grid\">\n<div class=\"ean-c ean-k0\"><b>Qu\u1ea3n l\u00fd kho v\u00e0 SKU<\/b><p>Nh\u1eadn d\u1ea1ng s\u1ea3n ph\u1ea9m, v\u1ecb tr\u00ed k\u1ec7 v\u00e0 \u0111\u01a1n v\u1ecb t\u1ed3n kho khi k\u1ebft n\u1ed1i ph\u1ea7n m\u1ec1m qu\u1ea3n l\u00fd.<\/p><em>V\u00ed d\u1ee5: KHO-A-001<\/em><\/div>\n<div class=\"ean-c ean-k1\"><b>V\u1eadn chuy\u1ec3n v\u00e0 \u0111\u01a1n h\u00e0ng<\/b><p>In m\u00e3 n\u1ed9i b\u1ed9 \u0111\u1ec3 theo d\u00f5i ki\u1ec7n h\u00e0ng, phi\u1ebfu xu\u1ea5t v\u00e0 \u0111\u01a1n h\u00e0ng.<\/p><em>V\u00ed d\u1ee5: ORD-000125<\/em><\/div>\n<div class=\"ean-c ean-k2\"><b>M\u00e3 l\u00f4 v\u00e0 s\u1ea3n xu\u1ea5t<\/b><p>\u0110\u00e1nh d\u1ea5u l\u00f4 h\u00e0ng, b\u00e1n th\u00e0nh ph\u1ea9m, d\u00e2y chuy\u1ec1n v\u00e0 s\u1ed1 serial.<\/p><em>V\u00ed d\u1ee5: LOT-20261204<\/em><\/div>\n<div class=\"ean-c ean-k3\"><b>Qu\u1ea3n l\u00fd t\u00e0i s\u1ea3n<\/b><p>D\u00e1n nh\u00e3n m\u00e1y m\u00f3c, thi\u1ebft b\u1ecb, h\u1ed3 s\u01a1 v\u00e0 d\u1ee5ng c\u1ee5 \u0111\u1ec3 ki\u1ec3m k\u00ea.<\/p><em>V\u00ed d\u1ee5: TS-000012<\/em><\/div><\/div>\n<h2>H\u01b0\u1edbng d\u1eabn t\u1ea1o v\u00e0 in barcode Code 128<\/h2><div class=\"ean-grid\"><div class=\"ean-c ean-k0\"><b>Nh\u1eadp d\u1eef li\u1ec7u<\/b><p>S\u1eed d\u1ee5ng \u0111\u00fang SKU ho\u1eb7c m\u00e3 \u0111\u00e3 l\u01b0u trong h\u1ec7 th\u1ed1ng. Kh\u00f4ng t\u1ef1 thay \u0111\u1ed5i s\u1ed1 0 \u0111\u1ea7u.<\/p><\/div><div class=\"ean-c ean-k1\"><b>Ch\u1ecdn k\u00edch th\u01b0\u1edbc<\/b><p>\u0110i\u1ec1u ch\u1ec9nh \u0111\u1ed9 r\u1ed9ng module v\u00e0 chi\u1ec1u cao ph\u00f9 h\u1ee3p di\u1ec7n t\u00edch tem, m\u00e1y in v\u00e0 m\u00e1y qu\u00e9t.<\/p><\/div><div class=\"ean-c ean-k2\"><b>T\u1ea3i file vector<\/b><p>Ch\u1ecdn SVG ho\u1eb7c PDF \u0111\u1ec3 \u0111\u01b0a v\u00e0o Illustrator, gi\u1eef nguy\u00ean t\u1ef7 l\u1ec7 v\u00e0 kho\u1ea3ng tr\u1eafng.<\/p><\/div><div class=\"ean-c ean-k3\"><b>In v\u00e0 qu\u00e9t th\u1eed<\/b><p>\u0110\u1ed1i chi\u1ebfu d\u1eef li\u1ec7u \u0111\u1ecdc \u0111\u01b0\u1ee3c v\u1edbi h\u1ec7 th\u1ed1ng tr\u01b0\u1edbc khi \u0111\u1eb7t in h\u00e0ng lo\u1ea1t.<\/p><\/div><\/div>\n<h2>So s\u00e1nh Code 128, EAN-13 v\u00e0 QR Code<\/h2><div class=\"ean-scroll\"><table><thead><tr><th>Ti\u00eau ch\u00ed<\/th><th>Code 128<\/th><th>EAN-13<\/th><th>QR Code<\/th><\/tr><\/thead><tbody><tr><td>Lo\u1ea1i m\u00e3<\/td><td>1D<\/td><td>1D<\/td><td>2D<\/td><\/tr><tr><td>D\u1eef li\u1ec7u<\/td><td>Ch\u1eef, s\u1ed1, k\u00fd t\u1ef1 ASCII<\/td><td>13 ch\u1eef s\u1ed1, g\u1ed3m s\u1ed1 ki\u1ec3m tra<\/td><td>V\u0103n b\u1ea3n, URL v\u00e0 d\u1eef li\u1ec7u kh\u00e1c<\/td><\/tr><tr><td>Chi\u1ec1u d\u00e0i<\/td><td>Linh ho\u1ea1t<\/td><td>C\u1ed1 \u0111\u1ecbnh<\/td><td>Ph\u1ee5 thu\u1ed9c dung l\u01b0\u1ee3ng<\/td><\/tr><tr><td>\u1ee8ng d\u1ee5ng<\/td><td>Kho, SKU, m\u00e3 l\u00f4<\/td><td>Nh\u1eadn d\u1ea1ng h\u00e0ng h\u00f3a b\u00e1n l\u1ebb<\/td><td>Truy c\u1eadp th\u00f4ng tin, marketing<\/td><\/tr><\/tbody><\/table><\/div>\n<h2>Code 128 c\u00f3 gi\u1ed1ng GS1-128 kh\u00f4ng?<\/h2><div class=\"ean-box\"><p>GS1-128 s\u1eed d\u1ee5ng n\u1ec1n t\u1ea3ng Code 128 nh\u01b0ng c\u00f3 quy t\u1eafc d\u1eef li\u1ec7u GS1, k\u00fd t\u1ef1 FNC1 v\u00e0 c\u00e1c Application Identifier (AI) \u0111\u1ec3 nh\u1eadn d\u1ea1ng tr\u01b0\u1eddng th\u00f4ng tin nh\u01b0 GTIN, s\u1ed1 l\u00f4 ho\u1eb7c h\u1ea1n s\u1eed d\u1ee5ng. Code 128 th\u00f4ng th\u01b0\u1eddng kh\u00f4ng t\u1ef1 tr\u1edf th\u00e0nh GS1-128 ch\u1ec9 v\u00ec nh\u1eadp c\u00e1c ch\u1eef s\u1ed1 ho\u1eb7c d\u1ea5u ngo\u1eb7c.<\/p><p>C\u00f4ng c\u1ee5 n\u00e0y t\u1ea1o Code 128 th\u00f4ng th\u01b0\u1eddng, kh\u00f4ng t\u1ea1o GS1-128. N\u1ebfu \u0111\u1ed1i t\u00e1c logistics y\u00eau c\u1ea7u GS1-128, c\u1ea7n tu\u00e2n th\u1ee7 <a href=\"https:\/\/ref.gs1.org\/standards\/genspecs\/\" rel=\"noopener\" target=\"_blank\">quy \u0111\u1ecbnh GS1<\/a> v\u00e0 th\u00f4ng s\u1ed1 nh\u00e3n c\u1ee7a \u0111\u1ed1i t\u00e1c.<\/p><\/div>\n<h2>L\u01b0u \u00fd thi\u1ebft k\u1ebf tem m\u00e3 v\u1ea1ch<\/h2><div class=\"ean-grid\"><div class=\"ean-c ean-k0\"><b>V\u00f9ng tr\u1eafng hai b\u00ean<\/b><p>Gi\u1eef t\u1ed1i thi\u1ec3u 10 l\u1ea7n \u0111\u1ed9 r\u1ed9ng module X \u1edf m\u1ed7i \u0111\u1ea7u m\u00e3; kh\u00f4ng ch\u00e8n ch\u1eef ho\u1eb7c h\u1ecda ti\u1ebft v\u00e0o v\u00f9ng n\u00e0y.<\/p><\/div><div class=\"ean-c ean-k1\"><b>M\u00e0u s\u1eafc t\u01b0\u01a1ng ph\u1ea3n<\/b><p>V\u1ea1ch \u0111en tr\u00ean n\u1ec1n tr\u1eafng l\u00e0 l\u1ef1a ch\u1ecdn an to\u00e0n; v\u1eadt li\u1ec7u b\u00f3ng v\u00e0 n\u1ec1n trong c\u1ea7n qu\u00e9t th\u1eed.<\/p><\/div><div class=\"ean-c ean-k2\"><b>Kh\u00f4ng k\u00e9o m\u00e9o<\/b><p>Kh\u00f4ng n\u00e9n ngang m\u00e3 \u0111\u1ec3 nh\u00e9t v\u1eeba tem; ch\u1ecdn n\u1ed9i dung v\u00e0 kh\u1ed5 tem ph\u00f9 h\u1ee3p.<\/p><\/div><div class=\"ean-c ean-k3\"><b>V\u1eadt li\u1ec7u in<\/b><p>Decal gi\u1ea5y ph\u00f9 h\u1ee3p nh\u00e3n th\u00f4ng th\u01b0\u1eddng; decal nh\u1ef1a c\u00f3 th\u1ec3 ph\u00f9 h\u1ee3p m\u00f4i tr\u01b0\u1eddng \u1ea9m t\u00f9y keo v\u00e0 v\u1eadt li\u1ec7u.<\/p><\/div><\/div>\n<h2>C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n<details><summary>Code 128 c\u00f3 c\u1ea7n \u0111\u0103ng k\u00fd kh\u00f4ng?<\/summary><p>M\u00e3 d\u00f9ng qu\u1ea3n l\u00fd n\u1ed9i b\u1ed9 c\u00f3 th\u1ec3 do doanh nghi\u1ec7p quy \u0111\u1ecbnh. V\u1edbi m\u00e3 nh\u1eadn d\u1ea1ng h\u00e0ng h\u00f3a th\u01b0\u01a1ng m\u1ea1i ho\u1eb7c quy tr\u00ecnh GS1, ph\u1ea3i d\u00f9ng d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c c\u1ea5p v\u00e0 \u0111\u00e1p \u1ee9ng y\u00eau c\u1ea7u c\u1ee7a \u0111\u1ed1i t\u00e1c.<\/p><\/details>\n<details><summary>C\u00f3 th\u1ec3 d\u00f9ng ti\u1ebfng Vi\u1ec7t c\u00f3 d\u1ea5u kh\u00f4ng?<\/summary><p>Phi\u00ean b\u1ea3n c\u00f4ng c\u1ee5 n\u00e0y ch\u1ec9 nh\u1eadn ASCII in \u0111\u01b0\u1ee3c. N\u00ean d\u00f9ng m\u00e3 \u0111\u1ecbnh danh kh\u00f4ng d\u1ea5u v\u00e0 l\u01b0u t\u00ean ti\u1ebfng Vi\u1ec7t trong ph\u1ea7n m\u1ec1m qu\u1ea3n l\u00fd.<\/p><\/details>\n<details><summary>M\u00e1y qu\u00e9t c\u00f3 \u0111\u1ecdc \u0111\u01b0\u1ee3c s\u1ed1 0 \u1edf \u0111\u1ea7u kh\u00f4ng?<\/summary><p>C\u00f4ng c\u1ee5 gi\u1eef nguy\u00ean chu\u1ed7i nh\u1eadp. H\u00e3y c\u1ea5u h\u00ecnh ph\u1ea7n m\u1ec1m nh\u1eadn d\u1eef li\u1ec7u d\u1ea1ng v\u0103n b\u1ea3n \u0111\u1ec3 tr\u00e1nh m\u1ea5t s\u1ed1 0 \u0111\u1ea7u khi nh\u1eadp v\u00e0o Excel ho\u1eb7c c\u01a1 s\u1edf d\u1eef li\u1ec7u.<\/p><\/details>\n<details><summary>Code 128 c\u00f3 ch\u1ee9a gi\u00e1 ti\u1ec1n ho\u1eb7c t\u00ean s\u1ea3n ph\u1ea9m kh\u00f4ng?<\/summary><p>M\u00e3 ch\u1ee9a chu\u1ed7i b\u1ea1n nh\u1eadp. M\u00e1y qu\u00e9t v\u00e0 ph\u1ea7n m\u1ec1m c\u1ea7n tra c\u1ee9u c\u01a1 s\u1edf d\u1eef li\u1ec7u \u0111\u1ec3 hi\u1ec3n th\u1ecb t\u00ean, gi\u00e1 ho\u1eb7c t\u1ed3n kho t\u01b0\u01a1ng \u1ee9ng.<\/p><\/details>\n<details><summary>N\u00ean d\u00f9ng SVG, PDF hay PNG \u0111\u1ec3 in?<\/summary><p>SVG v\u00e0 PDF vector ph\u00f9 h\u1ee3p thi\u1ebft k\u1ebf, gi\u1eef k\u00edch th\u01b0\u1edbc mm; PNG ph\u00f9 h\u1ee3p khi ph\u1ea7n m\u1ec1m y\u00eau c\u1ea7u \u1ea3nh raster. H\u00e3y in \u0111\u00fang k\u00edch th\u01b0\u1edbc v\u00e0 th\u1eed qu\u00e9t.<\/p><\/details>\n<details><summary>C\u00f4ng c\u1ee5 c\u00f3 l\u01b0u d\u1eef li\u1ec7u l\u00ean m\u00e1y ch\u1ee7 kh\u00f4ng?<\/summary><p>Vi\u1ec7c m\u00e3 h\u00f3a th\u1ef1c hi\u1ec7n trong tr\u00ecnh duy\u1ec7t, kh\u00f4ng c\u1ea7n g\u1eedi n\u1ed9i dung barcode \u0111\u1ebfn m\u00e1y ch\u1ee7 \u0111\u1ec3 t\u1ea1o m\u00e3. Trang c\u1ea7n t\u1ea3i th\u01b0 vi\u1ec7n JavaScript \u0111\u1ec3 ho\u1ea1t \u0111\u1ed9ng.<\/p><\/details>\n<h2>C\u00f4ng c\u1ee5 thi\u1ebft k\u1ebf v\u00e0 in \u1ea5n li\u00ean quan<\/h2><div class=\"ean-grid c128-links\"><a class=\"ean-c ean-k0\" href=\"https:\/\/inthienthanh.com\/tao-ma-vach-ean-13\/\"><b>T\u1ea1o m\u00e3 v\u1ea1ch EAN-13<\/b><p>T\u00ednh s\u1ed1 ki\u1ec3m tra v\u00e0 xu\u1ea5t m\u00e3 h\u00e0ng h\u00f3a.<\/p><\/a><a class=\"ean-c ean-k1\" href=\"https:\/\/inthienthanh.com\/tao-ma-qr\/\"><b>T\u1ea1o m\u00e3 QR c\u00f3 logo<\/b><p>Thi\u1ebft k\u1ebf QR theo m\u00e0u th\u01b0\u01a1ng hi\u1ec7u.<\/p><\/a><a class=\"ean-c ean-k2\" href=\"https:\/\/inthienthanh.com\/in-an\/in-tem-nhan-decal-trong\/\"><b>In tem nh\u00e3n decal trong<\/b><p>Tham kh\u1ea3o v\u1eadt li\u1ec7u tem nh\u00e3n.<\/p><\/a><\/div>\n<div class=\"c128-cta\"><h2>In tem m\u00e3 v\u1ea1ch Code 128 t\u1ea1i In Thi\u00ean Thanh<\/h2><p>C\u1ea7n in tem SKU, m\u00e3 kho ho\u1eb7c m\u00e3 l\u00f4 theo danh s\u00e1ch Excel? H\u00e3y chu\u1ea9n b\u1ecb d\u1eef li\u1ec7u, k\u00edch th\u01b0\u1edbc tem, s\u1ed1 l\u01b0\u1ee3ng v\u00e0 v\u1eadt li\u1ec7u mong mu\u1ed1n \u0111\u1ec3 \u0111\u01b0\u1ee3c t\u01b0 v\u1ea5n ph\u01b0\u01a1ng \u00e1n in ph\u00f9 h\u1ee3p.<\/p><a href=\"https:\/\/inthienthanh.com\/\">Li\u00ean h\u1ec7 In Thi\u00ean Thanh<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>T\u1ea1o barcode Code 128 t\u1eeb ch\u1eef, s\u1ed1, SKU v\u00e0 m\u00e3 l\u00f4. Xu\u1ea5t PNG, JPEG, SVG, PDF vector, t\u1ea1o h\u00e0ng lo\u1ea1t 50 m\u00e3 v\u00e0 t\u00f9y ch\u1ec9nh k\u00edch th\u01b0\u1edbc in.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-53054","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/pages\/53054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/comments?post=53054"}],"version-history":[{"count":1,"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/pages\/53054\/revisions"}],"predecessor-version":[{"id":53056,"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/pages\/53054\/revisions\/53056"}],"wp:attachment":[{"href":"https:\/\/inthienthanh.com\/en\/wp-json\/wp\/v2\/media?parent=53054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}