Defendant Cory P. Ryan appeals an order denying his motion for credit for time served. We reverse.
On March 18, 2002, Cory Ryan accepted a court offer and admitted violating his community control in four cases. The circuit judge explained her offer as follows: “I tell you what I will do, two years Y.O. followed by two years Community Control.” The judge questioned Ryan about the rights he was giving up and again told him he would get “two years Youthful Offender prison followed by two years Community Control.” After the court pronounced sentence, a corrections officer asked, “C.T.S. from 2/22?” The judge responded, “Yes, ma'am.” The clerk prepared sentencing orders which granted Ryan credit for time served for the period between February 22, 2002, and sentencing on March 18, 2002.1 Ryan subsequently filed a motion for credit for time served, arguing that he had spent considerably more time in jail for the cases at issue. That motion was denied by a successor judge.
The general rule is that a sentence that does not mandate credit for time served is illegal since a trial court has no discretion to impose a sentence without crediting a defendant with time served. See State v. Mancino, 714 So.2d 429 (Fla.1998). Ryan argues the case must be remanded with directions to credit all his jail time. In response, the State argues that Ryan waived the error by failing to raise it at sentencing. See Howard v. State, 705 So.2d 947 (Fla. 1st DCA 1998) (affirming as unpreserved the trial court’s failure to award credit for time served).
In Cozza v. State, 756 So.2d 272 (Fla. 3d DCA 2000), however, this court observed that although a defendant can waive credit for time served as part of a plea agreement, such waiver must be clearly shown on the record. “Where a defendant’s waiver of credit for time served is not clearly shown on the record, it will not be presumed.” Cozza, 756 So.2d at 273(citing Wells v. State, 751 So.2d 703, 704 (Fla. 1st DCA 2000)). We find that the record before us does not reflect a voluntary and specific waiver by defendant.
*1077Aceordingly, we reverse and remand for entry of an order crediting Ryan with time spent in jail prior to sentencing.