She will pay a $2,000 fine, serve 200 hours of community service and never see the inside of a jail cell.
The 29-year-old was arrested Aug. 26 inside the Wynn resort after police say a small plastic bag containing 0.8 of a gram of cocaine fell out of Hilton's purse as she reached for lip balm in front of a police officer.
Initially, Hilton told officers that the purse and cocaine were not hers. She has since been banned from the Wynn resort on the Las Vegas strip.
To avoid a felony conviction, Hilton will serve a year of probation and two suspended six-month jail terms.
She won't have to report to a probation officer, but according to the prosecutor, if the socialite gets into trouble again in Las Vegas, she will automatically serve one year in jail.
"The purpose of this at this point is that you change your conduct," Justice of the Peace Joe M. Bonaventure told the hotel heiress. "The Clark County Detention Center is not the Waldorf-Astoria."
Hilton spent three weeks at the Los Angeles County jail in Lynwood in 2007 for violating conditions from a DUI charge.
Hilton has had other run-ins with the law.
Do you want the Eyewitness News team to call you? Get a FREE Morning Wake-up Call and personalized weather report at abc7.com/wakeup