the 2d barcodes vary from state to state. best way to do it is if you have a real id, scan it, crop the barcode and decode it. You also have to know the proper row and column settings as well as error correction and target dpi. instead of using an online generator, download pdf417