William Robert McCracken (29 January 1883 – 20 January 1979) was a Northern Irish footballer who played as a defender. He is famous for inventing the offside trap. He was a cousin of Robert McCracken who also had a career as a professional footballer.