CSV Barcode Decoder

Parse comma-separated barcode data into rows and columns

CSV

Our free CSV barcode decoder converts comma-separated data stored in a QR code or barcode into rows and columns. For example, Name,Quantity followed by Apple,3 describes two columns and one data row. CSV may include a header row, and quoted fields can contain commas without splitting the value.

Need to decode CSV barcodes in your app?

Copy the example below to get started using our free Barcode Parser API. No API key needed.

cURL Node.js Python C# Go PHP Java HTML
barcode=$'Name,Product,Quantity\x0aJohn,Widget,10'
curl -sS -G https://parser.orcascan.com/ \
    --data-urlencode "barcode=$barcode" \
    --data-urlencode 'type=csv'
// Node.js 18+
var barcode = "Name,Product,Quantity\nJohn,Widget,10";
var url = "https://parser.orcascan.com/?barcode=" + encodeURIComponent(barcode) + "&type=csv";

fetch(url)
    .then(function(res) { return res.json(); })
    .then(console.log);
import json
from urllib.parse import quote
from urllib.request import urlopen

barcode = "Name,Product,Quantity\nJohn,Widget,10"
url = "https://parser.orcascan.com/?barcode=" + quote(barcode, safe="") + "&type=csv"

with urlopen(url) as response:
    print(json.load(response))
using System;
using System.Net.Http;

var barcode = "Name,Product,Quantity\nJohn,Widget,10";
var url = "https://parser.orcascan.com/?barcode=" + Uri.EscapeDataString(barcode) + "&type=csv";

using var client = new HttpClient();
Console.WriteLine(await client.GetStringAsync(url));
package main

import (
    "io"
    "net/http"
    "net/url"
    "os"
)

func main() {
    barcode := "Name,Product,Quantity\nJohn,Widget,10"
    endpoint := "https://parser.orcascan.com/?barcode=" + url.QueryEscape(barcode) + "&type=csv"
    res, err := http.Get(endpoint)
    if err != nil { panic(err) }
    defer res.Body.Close()
    io.Copy(os.Stdout, res.Body)
}
<?php
$barcode = "Name,Product,Quantity\x0aJohn,Widget,10";
$url = "https://parser.orcascan.com/?barcode=" . rawurlencode($barcode) . "&type=csv";

echo file_get_contents($url);
import java.net.URI;
import java.net.URLEncoder;
import java.net.http.*;
import java.nio.charset.StandardCharsets;

class BarcodeParser {
    public static void main(String[] args) throws Exception {
        String barcode = "Name,Product,Quantity\nJohn,Widget,10";
        String url = "https://parser.orcascan.com/?barcode=" +
            URLEncoder.encode(barcode, StandardCharsets.UTF_8) + "&type=csv";
        var request = HttpRequest.newBuilder(URI.create(url)).build();
        var response = HttpClient.newHttpClient().send(
            request, HttpResponse.BodyHandlers.ofString());
        System.out.println(response.body());
    }
}
<!doctype html>
<html>
<body>
<pre id="result">Loading...</pre>
<script>
var barcode = "Name,Product,Quantity\nJohn,Widget,10";
var url = "https://parser.orcascan.com/?barcode=" + encodeURIComponent(barcode) + "&type=csv";
fetch(url)
    .then(function(res) { return res.json(); })
    .then(function(json) {
        document.getElementById("result").textContent = JSON.stringify(json, null, 2);
    });
</script>
</body>
</html>

Need to decode lots of CSV barcodes?

Import a spreadsheet of barcodes and automatically extract their data into separate columns.

Decode barcodes in bulk →

Need to extract CSV data as you scan?

Scan barcodes with your phone and automatically capture their data in a shared spreadsheet.

Scan with your phone →

Frequently asked questions

How is CSV data separated inside a barcode?

CSV normally uses commas between fields and line breaks between records. The first record may contain column headings, but a header is not mandatory.

How are commas and quotation marks encoded inside CSV fields?

A field containing commas or line breaks can be enclosed in double quotes. A literal double quote inside a quoted field is written twice.

Is CSV a barcode symbology?

No. CSV structures the text payload. The barcode symbology, such as QR Code or Data Matrix, determines how the payload is represented visually.

Need help tracking CSV barcodes?

We've helped organizations of all sizes tackle barcode challenges, chat with our team live for help to find a solution.