How can I make a perfect square face from a rectangle?

Use “Measureit” addon (with Blender by default)