Base64

Sometimes you may need to get the barcode image as a Base64 encoded string. It's possible to do that by simply adding the base64 query parameter to the request.

Parameter Values

0 Do not return output as a Base64 encoded string. (Default)
1 Return output as a Base64 encoded string.

Example

Generate a barcode as a Base64 encoded string:

        
            https://barcodethis.io/api/v1?value=hello&type=C39&base64=1&api_token=[TOKEN]
        
    

The request above will return a response like this:

        
            data:image/jpg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS...