"It's a shame, but as an emergency loan he could only be with us for 93 days, that period ended on Tuesday," Wrexham boss Brian Carey told the club website.
"Robbie has been a credit to himself and to Stoke, I'm sure we'll be hearing a lot more about him in the future."