know (something) inside and out
To be well-versed in and/or very familiar with something. I'm ready for this exam—I know genetics inside and out! I think Mary will do great at the audition, now that she knows the dance inside and out. These cabbies know the city streets inside and out.