The invention discloses a run-length coding FPGA (field programmable gate array) implementing method in a JPEG-LS (joint photographic experts group-lossless standard). The method includes: on the basis of a JPEG-LS implementing method, setting up, storing and looking up a mapping table according to index values so as to obtain an accumulated sum array, comparing run lengths with values in the accumulated sum array for five times according to a binary comparison method so as to obtain cycle indexes to achieve run-length coding, and simply and effectively achieving index value updating in two steps. By the method, the problem of complex updating structures of the index values is solved, run-length coding is achieved in short period, a mapping table structure is simplified by accumulated operations, and hardware resources are saved. Besides, a fully-pipelined structure is adopted, hardware resource consumption is less, and the method is real-time and easy to implement a field programmable gate array.