The crack of concrete structure plays an important role in the durability and safety of structure. Therefore, the features such as width, length, and direction of that must be measured periodically. The conventional method of measurement of cracks is manually sketched, however. it takes a fairly long time and lacks quantitative objectivity. This study proposes the algorithm to extract and analyze cracks automatically. The proposed algorithm is composed of two sub-algorithms. The extraction algorithm includes elimination of effect due to light, binarization. and noise reduction. The analysis algorithm includes thinning process, labeling, and calculation of crack width, length, and direction. The test to demonstrate the algorithm is fulfilled using the images of cracks on real concrete surface.