OPINION
delivered the opinion of the Court,
Applicant, Joshua Wayne Delaney, was indicted for aggravated robbery. He entered a non-negotiated plea of guilty to the allegation, signed a stipulation of evidence swearing that all elements alleged in the indictment were true, and was admonished by the court of the consequences of his plea. In addition, Applicant signed and executed a voluntary waiver of his right to appeal. Applicant was placed on deferred-adjudication community supervision for ten years. After he violated the terms of community supervision, Applicant’s probation was revoked, and he was sentenced to life imprisonment in the Texas Department of Criminal Justice Institutional Division and fined $10,000. Applicant sought the trial court’s permission to appeal his sentence, but was denied. He filed an application for a writ of habeas corpus, claiming that he was denied the right of appeal. We filed and set this application for writ of habeas corpus and requested briefs from the parties to determine whether a waiver of the right to appeal that was executed when the defendant was placed on deferred-adjudication community supervision affects the right of appeal after adjudication of guilt and sentencing. We hold that *796 Applicant was improperly denied the right to appeal his sentence.
FACTS
Applicant was on deferred adjudication from a timely pass for plea of guilty to aggravated robbery. A timely pass for plea allows the defendant the choice of accepting the judge’s punishment or asking for a jury to determine punishment. At his hearing, Applicant was admonished that there was no plea agreement in this case. He waived his right to a jury trial, pled guilty, and signed a stipulation of evidence stating that the allegations in the indictment were true. The parties presented evidence, and the court heard argument on punishment. The court found sufficient evidence to find Applicant guilty, but deferred the finding, placing Applicant on deferred-adjudication probation for a term of ten years and imposing conditions of community supervision. The court asked Applicant if he wanted to accept this sentence or would like a jury to determine punishment. He chose to accept the court’s deferred sentence. Applicant was informed of his right to appeal. He testified that he understood his rights and signed a waiver of appeal. The waiver of right to appeal states that “he does not wish to appeal his conviction and expressly waives his right to appeal.” The waiver was signed March 9, 2004, which was after he signed the Timely Pass for Plea, but was the same day he signed the Conditions of Community Supervision. The trial court’s certification of defendant’s right to appeal, stating that the defendant has waived the right to appeal is dated February 23, 2004. 1 A second certification of defendant’s right to appeal was signed on February 11,2005, and also stated that the defendant waived appeal at the time he was sentenced to probation.
After ten months of deferred-adjudication community supervision, the State filed a motion to proceed to final adjudication, stating that Applicant had violated the terms of his community supervision. Applicant pled true to the allegations that he violated the conditions by failing to pay supervision fees and failing to perform community-service hours. The court revoked his community supervision and proceeded to final adjudication of guilt. Finding Applicant guilty, the court assessed punishment at confinement for life and a fine of $10,000. Applicant sought the trial court’s permission to appeal his sentence, but was denied. He filed an application for a writ of habeas corpus claiming that he was denied the right of appeal. We filed and set this case to consider whether a waiver of the right of appeal prevents appeals from the sentencing phase of trial when Applicant signed the waiver before final adjudication and sentencing, the waiver is not bargained for, and punishment is uncertain when the waiver is signed but the range of punishment for the offense is known.
DISCUSSION
A defendant in any criminal action has a right to appeal. TexCode CRiM. Prog. art. 44.02. However, a defendant in a non-capital felony case may waive any rights secured to him by law, including the right of appeal. TexCode CRiM. Prog. art. 1.14. Texas has “long held that a valid waiver of appeal prevents a defendant from appealing without the trial court’s consent.”
Monreal v. State,
We have held that a defendant on deferred-adjudication community supervision may not appeal from the trial court’s determination to proceed with an adjudication of guilt on the original charge. Tex. Code Ceim. Peoc. art. 42.12, § 5(b);
2
Hargesheimer v. State,
In
Ex parte Townsend,
The blanket rule invalidating all presen-tencing waivers of appeal was changed in
Blanco v. State,
*798
In
Monreal,
we explained that
Blanco
does not require a plea agreement for a waiver to be binding; rather the importance of the plea agreement in
Blanco
was that it determined that Appellant’s waiver was knowing and intelligent by specifying the punishment.
Monreal,
When a presentencing waiver of appeal was not bargained for in exchange for an agreed upon sentence, concerns as to the validity of the waiver are raised. This concern led us to conclude in Thomas and Townsend that presentencing waivers are not binding because they cannot be made knowingly, voluntarily, and intelligently. As in the case before us, there was no plea agreement in Thomas or Townsend. In Blanco, there was a plea agreement, which was important to show that the waiver was knowing and voluntary. In Monreal, the waiver of appeal was signed after he was sentenced, so the waiver was held to be knowing and voluntary.
ANALYSIS
In the case before us, the waiver of appeal was executed before the trial court decided to proceed to adjudication of guilt, it was unbargained for, and there was no recommended sentence. Thus, Applicant’s waiver of appeal was not made knowingly and intelligently regarding the sentencing phase of trial. Like
Townsend
and
Thomas,
Applicant could not know with certainty at the time he waived his right to appeal if the court would ever proceed to final adjudication or what punishment would be assessed.
Townsend,
When the punishment that may be assessed if guilt is adjudicated is not certain, the validity of a pretrial waiver of appeal is in question because the waiver cannot be knowing and intelligent when potential errors cannot be anticipated and the consequences of the waiver are unknown. Since Applicant did not bargain for his waiver or have a sentencing recommendation at the time he waived his right of appeal, the facts are distinguishable from the situation in
Blanco.
Even when
*799
a waiver is bargained for in exchange for deferred adjudication, if the plea agreement does not contain a recommended punishment to be imposed if guilt is adjudicated, then the waiver may not be knowing and intelligent and thus may not be valid. While a recommended sentence may remove uncertainty, it does not guarantee that the defendant will receive the specified sentence. Because the court is not bound by a plea bargain at the hearing on the motion to adjudicate guilt, a defendant cannot be certain of the term of his sentence until he violates the conditions of his community supervision and guilt is adjudicated.
See Ex Parte Huskins,
The instant case does not escape all three concerns expressed in
Townsend
and
Thomas.
Unlike
Blanco,
the punishment that would be imposed if Applicant was adjudicated guilty was uncertain when he waived his right of appeal. In
Blanco,
a plea bargain that determined punishment was relied upon to find that the appellant knew the consequences of the waiver, and there were no compelling reasons not to uphold the waiver.
Blanco,
The issue in the case before us most resembles the facts in Townsend and Thomas, where there were no plea agreements, so the waiver of appeal was not binding because of the potential for future errors and because the punishment was uncertain. Although we held in Blanco that pretrial waivers of the right of appeal can be binding, Blanco is distinguishable from the instant case because in Blanco, all future uncertainty was removed by a plea agreement, making the pretrial waiver of appeal voluntary, knowing, and intelligent.
To remove the confusion that has arisen related to pretrial waivers of appeal, we hold that, in order for a pretrial or presentencing waiver of the right to appeal to be binding at the punishment phase of trial, the waiver must be voluntary, knowing, and intelligent. One way to indicate that the waiver was knowing and intelligent is for the actual punishment or maximum punishment to have been determined by a plea agreement when the waiver was made. However, simply knowing the range of punishment for the offense is not enough to make the consequences of a waiver known with certainty, because it still does not allay the concern that unanticipated errors may occur at the punishment phase of trial.
CONCLUSION
Because his waiver was not knowing and intelligent concerning the punishment phase of trial, Applicant’s pretrial waiver of appeal does not prevent appeals from his sentence. When Applicant waived his right of appeal at the time he agreed to *800 deferred adjudication, he could not know what errors might occur at the sentencing phase of trial or what punishment would be assessed if guilt was adjudicated. Therefore, Applicant’s waiver was not knowing and intelligent and does not bar him from appealing from the punishment phase of trial. Relief is granted, and the trial court is instructed to certify Applicant’s right to appeal issues related to his sentence.
Notes
. While it seems odd that the trial court’s certification of defendant’s right to appeal was signed and dated before Applicant signed and dated the waiver of his right to appeal, these are the dates listed on the documents. Both documents were filed with the clerk of the court on March 12, 2004.
. Texas Code of Criminal Procedure article 42.12, § 5(b) states in part that "[a]fter an adjudication of guilt, all proceedings, including assessment of punishment, pronouncement of sentence, granting of community supervision, and defendant’s appeal continue as if the adjudication of guilt had not been deferred.”
. It is interesting to note that the courts of appeals have continued to hold that presen-tencing waivers do not prevent appeals from the punishment phase of trial when a defendant’s punishment is not certain by relying on
Townsend
and
Thomas
instead of
Blanco. Tufele v. State, 130
S.W.3d 267, 270 (Tex.App.-Houston [14 Dist.] 2004, no pet.) (holding that presentencing waiver did not prevent appeals from the punishment phase of trial
*798
because without a sentencing recommendation, the waiver's consequences could not be known and the appellant neither bargained for a sentencing recommendation nor waived his right to appeal after sentencing);
Perez v. State,
