Polyaniline (PANI) is one of the most extensively used conjugated polymers in the design of electrochemical sensors. In this study, we report electrochemical dye detection based on PANI for the adsorption of both anionic and cationic dyes from solution. The inherent property of PANI to adsorb dyes has been explored for the development of electrochemical detection of dye in solution. The PANI film was grown on electrode via electrochemical polymerization. The as grown PANI film could easily adsorb the dye in the electrolyte solution and form an insulating layer on the PANI coated electrode. As a result, the current intensity of the PANI film was significantly altered. Furthermore, PANI coated stainless steel (SS) electrodes show a change in the current intensity of Fe2+/Fe3+ redox peaks due to the addition of dye in electrolyte solution. PANI films coated on both Pt electrodes and non-expensive SS electrodes showed the concentration of dye adsorbed is directly proportional to the current intensity or potential shift and thus can be used for the quantitative detection of textile dyes at very low concentrations. © 2011 Elsevier B.V.