With a square neckline, keep the necklace inside the opening or leave the shape clear and wear earrings. Try a short curved chain or a small pendant, then check its distance from the fabric edge. The best placement is one that does not keep straddling the neckline.
A small pendant: use the central space
The side and bottom edges of a square neckline frame a small pendant. Adjust the extender with the top on, checking the clearance while standing and sitting. A deeper opening offers more room; with a higher square neck, reduce the pendant size or focus on earrings.
A curved chain: contrast with the straight edges
A fine chain, spaced beads, or a short necklace can make a curved line inside the opening. For two layers, leave each necklace and the neckline visible. If there is not enough room, keep one rather than crowding the lengths together.

With lace or gathers, move the jewelry elsewhere
A decorated square neck may not need a necklace. Try hoops or drops and a single ring. Consider your hairstyle too: with hair up, a smaller earring can still have a clear presence.
Check the neckline in motion
Bend, sit, and move your shoulders. Watch for a chain caught at a corner or a pendant slipping beneath the fabric. Length measurements are a starting point; neck size, pendant shape, and garment cut affect the actual position.