Stock Item barcode

Does anyone know a fast way to add barcodes to each stock item fast or will it have to be done manually?

Many Thanks :)