Leaf extracts of <em>Cordyline fruticosa</em> was used as a natural visual indicator for a digital image-based analytical procedure for the measurement of water alkalinity. A smartphone and ImageJ were used to capture and process the images, respectively. This work sought to develop and evaluate a greener strategy of using of <em>Cordyline fruticosa</em> leaf extract as natural indicator, in a digital image-based colorometric set-up using smartphone. Under optimized conditions, the linear working range was from 40 to 160 ppm of CaCO<sub>3</sub>, with a calibration sensitivity of 5 x 10<sup>-3</sup> ppm and a coefficient of correlation (r<sup>2</sup>) = 0.998. The limit of detection and quantification were 39 ppm and 117 ppm, respectively. A 10,000 ppm CaCO<sub>3</sub> solution was tested using the proposed method and the results statistically agree with the results obtained from titrimetric methods. The study presented a simple analytical procedure that can be develop and apply for the assessment of pollution that could pose serious human and environmental health hazards.