Wash okra thoroughly and trim stems without cutting into the pod to keep brine from entering.
Prepare jars by washing and keeping them warm.
In a saucepan, combine vinegar, water, and pickling salt. Bring to a boil.
Place one garlic clove, dill sprig, peppercorns, mustard seeds, and red pepper flakes (if using) into each jar.
Pack okra vertically into jars as tightly as possible without crushing.
Pour hot brine over okra, leaving ½ inch headspace.
Remove air bubbles and wipe jar rims clean.
Apply lids and bands fingertip tight.
Process jars in a boiling water bath canner for 10 minutes (adjust for altitude if needed).
Remove jars and let cool undisturbed for 12–24 hours. Check seals before storing.
Store in a cool, dark place for up to 1 year. Wait 1–2 weeks before opening for best flavor.