To come clean

To confess/own up to/admit to having done something wrong

e.g. I told my mother that my younger brother had broken the window playing football but I felt bad so I came clean and told her that I had done it.