Ultrasonic nondestructive testing (NDT) technology was one of the most frequently used and fastest-developing NDT techniques in detection field. This method had high detection sensitivity, more accurate defect localization, and was harmless to the human body. With the development of ultrasonic testing technology, modern ultrasonic imaging technology generally had automatic data acquisition and processing functions, which allowed for intuitive and clear recognition of internal defects by the human eyes. The overall purpose of this study was to visualize the cracks in concrete by synthetic aperture focusing technique (SAFT) and full-waveform inversion (FWI) algorithms on the basis of ultrasonic nondestructive testing technology. At present, there have been studies on the use of ultrasonic instruments to detect the internal defects of concrete. However, the accuracy and authenticity of this method have not been compared in previous studies. Therefore, in this experiment, four concrete specimens with different buried depths, angles, shapes, and thicknesses of cracks were designed. Based on SH ultrasonic wave NDT technology, two types of operations were performed on the collected ultrasonic wave data: one was the application of SAFT method, and the other was the first application of FWI method for detecting internal cracks in concrete. The study found that both algorithms were most accurate in determining the burial depth of cracks, with error results not exceeding 10 %. They also showed good recognition effects for the angle, shape, and thickness of the buried cracks. This proved that both identification methods had the capability to recognize internal cracks. The Introview software bundled with the ultrasonic instrument could identify cracks using SAFT directly and quickly. When FWI was used with MATLAB computation, the results were more precise and intuitive. The overall purpose of this study was to detect cracks in concrete by SAFT and FWI algorithms on the basis of ultrasonic nondestructive testing technology. Combining the two crack identification techniques could be of great significance for ensuring the long-term safety and stability of concrete structures, providing strong support for structural maintenance and reinforcement.