Generators

Barcode Generator

Live

Generate an SVG Code 128-style barcode preview for text.

About Barcode Generator

Generate an SVG Code 128-style barcode preview for text. Enter barcode value, bar height, show text in a purpose-built barcode label interface designed for this subject. Input characters are encoded into Code 128 symbol patterns with checksum and stop modules, then rendered as local SVG. The result includes barcode svg, encoded characters, checksum value, supporting detail, and clear units or diagnostics. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements. Processing stays in your browser, and UtilityPages does not store the values you enter.

Set up Barcode Generator

Workspace

Source workbench

Edit the source fields below and inspect the rendered output alongside your work.

Complete the fields to prepare a result.

Enter barcode value.

Enter bar height.

Enter show text.

Barcode Generator result

Enter the values above, then calculate to see a detailed result.

How Barcode Generator works

Input characters are encoded into Code 128 symbol patterns with checksum and stop modules, then rendered as local SVG.

How it works

Input characters are encoded into Code 128 symbol patterns with checksum and stop modules, then rendered as local SVG. Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.

Examples

Barcode Generator worked example

Example input
{
    "value": "UP-PHASE6-2026",
    "height": 90,
    "show_text": "yes"
}
Expected result
{
    "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" role=\"img\" aria-label=\"Code 128 barcode for UP-PHASE6-2026\" viewBox=\"0 0 418 114\"><rect x=\"20\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"26\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"32\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"42\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"48\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"56\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"64\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"72\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"80\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"86\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"92\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"98\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"108\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"116\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"124\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"130\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"140\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"144\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"152\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"156\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"164\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"174\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"180\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"188\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"196\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"204\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"210\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"218\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"226\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"234\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"240\" y=\"0\" width=\"2\" height=\"90\"/><rect x=\"246\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"252\" y=\"0\" width=\"6\" height=\"90\"/><rect x=\"262\" y=\"0\" width=\"4\" height=\"90\"/><rect x=\"270\" y=\"0\" width=\"6\n…",
    "encoded_characters": 14,
    "checksum": 14
}

Privacy

This tool does not store your inputs or results on UtilityPages.org.

Frequently asked questions

How does the Barcode Generator work?

Input characters are encoded into Code 128 symbol patterns with checksum and stop modules, then rendered as local SVG.

What information should I enter?

Enter barcode value, bar height, show text. Use values and units from the same scenario so the result is internally consistent.

What results does this tool provide?

It reports barcode svg, encoded characters, checksum value, including intermediate context where it helps you review the answer.

What limitations should I know about?

Results depend on the entered assumptions, units, and rounding. Review important decisions against authoritative requirements.