Method for profiling edges of a panel, wherein the panel comprises a first interlocking profile on a first edge and a second interlocking profile on a second, opposite edge , which first and second interlocking profile (6-7) are configured to cooperate and thus to realize mechanical interlocking between two such panels ; wherein the first interlocking profile is configured in the form of a tongue ; wherein the tongue comprises, on the upper side thereof, a vertically active interlocking surface and, on the underside thereof, an interlocking groove with a horizontally active interlocking surface ; wherein the second interlocking profile is configured in the form of a groove ; wherein the groove is bounded by an upper and lower lip (13-14); wherein the upper lip comprises, on the underside thereof, a vertically active interlocking surface that is configured to cooperate with the vertically active interlocking surface on the upper side of the tongue and thus to realize a vertical interlocking between two such panels; wherein the lower lip comprises, on the upper side thereof, an interlocking element with a horizontally active interlocking surface that is configured to cooperate with the horizontally active interlocking surface in the interlocking groove and thus to realize a horizontal interlocking; and wherein the method comprises at least the following steps: - moving the panel into a feeding device (FD) with the first edge relative to a first tool device comprising a first and second rotating cutting tool (20-21) and with the second edge relative to a second tool device comprising a third and fourth rotating cutting tool (25-26); - forming a first and second, different subcontour (28-29) of the tongue by means of the first and second rotating cutting tool (20-21), respectively, wherein the first subcontour comprises the horizontally active interlocking surface of the tongue and the second subcontour comprises the vertically active interlocking surface of the tongue ; and - forming a third and fourth, different subcontour (30-31) of the groove by means of the third and fourth rotating cutting tool (25-26), respectively, wherein the third subcontour comprises the horizontally active interlocking surface of the groove and the fourth subcontour comprises the vertically active interlocking surface of the groove ; characterized in that at least one of the abovementioned rotating cutting tools (20-21, 25-26) comprises a first group of teeth with a first form and a second group of teeth with a second, different form, so that different parts of the contour of the respective interlocking profile are formed with the teeth of the first and second group; wherein the at least one rotating cutting tool comprises a tooth sequence that repeats along at least a part of the circumference of the at least one rotating cutting tool, which tooth sequence comprises a tooth from both the first and the second group. - moving the panel into a feeding device (FD) with the first edge relative to a first tool device comprising a first and second rotating cutting tool (20-21) and with the second edge relative to a second tool device comprising a third and fourth rotating cutting tool (25-26); - forming a first and second, different subcontour (28-29) of the tongue by means of the first and second rotating cutting tool (20-21), respectively, wherein the first subcontour comprises the horizontally active interlocking surface of the tongue and the second subcontour comprises the vertically active interlocking surface of the tongue ; and - forming a third and fourth, different subcontour (30-31) of the groove by means of the third and fourth rotating cutting tool (25-26), respectively, wherein the third subcontour comprises the horizontally active interlocking surface of the groove and the fourth subcontour comprises the vertically active interlocking surface of the groove ; <EOS>