Polymethinium salts based on substituted malondialdehyde have been prepared; the salt with PEG substitution showed high selectivity for sulfate anions and heparin in aqueous medium at physiological condition; intracellular imaging of heparin-rich subcellular compartments was achieved with our polymethinium novel receptor for cancer cell lines.