The sulfonium and pyridinium ylides stabilized by a cyanoformyl group, in an acidic medium, lead to sulfonium and pyridinium salts which are equivalents of pyridinium or sulfonium ketene salts. This originality has been used to prepare new stabilized ylides, or derivatives of substituted arylacetic acids or 4-hydroxy thiazoles.