Justin Bieber is off the hook ... the legal hook.

The 18-year-old singer will not be charged with battery for allegedly beating up a photographer back in May, according to TMZ.

The photographer said he got into a physical altercation with Bieber in Calabasas. Apparently there was some sort of confrontation and the guy called 911. There was no word on whether he was injured -- and I just typed that with a totally straight face. Because alleged violent crimes are no laughing matter ... even if the alleged perpetrator weighs 102 pounds soaking wet and becomes invisible when he turns sideways.

By the way, who calls the police and admits he just got beat up by Justin Bieber?

Anyway, the Los Angeles County District Attorney's Office decided not to move ahead with the case because of conflicting witness accounts and an overall lack of evidence.

Contact Tony Hicks at thicks@bayareanewsgroup.com or on Facebook at www.facebook.com/BayAreaNewsGroup.TonyHicks.