A police spokeswoman said they received a report at 2.30pm that the boys had been swept out off Chrystalls Beach in Irishmans Rd.
A helicopter was advised, but a short time later the boys were out of the water, conscious and breathing.
They were cold and taken to Dunedin Hospital for an assessment as a precaution.