This article theoretically derives the magnetic field and vector potential produced by a steady current I flowing in an arbitrary plane loop at an arbitrary point r. Numerical examples are presented to demonstrate the behavior of the magnetic field produced by loops of various shapes such as polygons, circles, ellipses, and p-norm balls. Taking the limit as the loop shrinks to a point and the current I grows to infinity so that the magnetic dipole moment m of the loop (defined as the current I times the vector area of the loop) is kept constant, the magnetic field and vector potential are theoretically shown to converge to those of an ideal point magnetic dipole m.