The equity benchmark indices Sensex and Nifty gave up early gains and turned volatile on Wednesday, dragged by profit booking at higher levels amid mixed global cues.