A hapless burglar who broke into a bakery, but had trouble getting out again, has handed himself into Victorian police.

The young man broke into the shop, in the Melbourne suburb of Frankston, through a skylight and landed in a locked store room.

So he tried stacking up a number of containers on top of each other to try and climb out.

But they toppled over, throwing him to the floor.

Then he tried to climb shelves to get out, and they collapsed under him.

He fell to the floor several times, and ended up with a number of cuts and bruises.

The man is also seen texting on his mobile phone for help.

He discovers the security camera and tries to cover it up.

Eventually, after a number of attempts, the man finally managed to escape.

After closed-circuit video revealing a clear image of his face was released by police, the man handed himself in.

The 19-year-old Somerville man has been charged with one count of burglary and one count of criminal damage.

He has been bailed to appear in the Frankston Magistrates Court at a later date.