Khusaim Abewath, of Woodsome Estate, Batley, was on Foreshore Road on July 23 2019 when he targeted a mum who was "minding her own business" with her children aged nine and 11.
The 24-year-old who "had far too much to drink" started throwing sand at the woman, who was eating fish and chips, before shouting racist abuse at her and her kids.
The incident was filmed and police alerted.
On Monday, Abewath appeared at Scarborough Magistrates Court where he pleaded guilty to using threatening, abusive or insulting words and behaviour, which was racially aggravated, causing harassment, alarm or distress. He had previous convictions for dangerous driving and possession of cannabis.
Paul Blanchard, defending, said Abewath was "a mild young man" who had become "intoxicated".
District Judge Adrian Lower condemned Abewath for his "appalling behaviour" but took into account his guilty plea and the fact the defendant had "lost his job recently".
Abewath was sentenced to 200 hours of unpaid community work and was ordered to pay £150 compensation, a surcharge of £90 and £85 in prosecution costs.