An opt-in is a formal choice you make to join a legal action or agree to be part of a group lawsuit, rather than being automatically included.
In a court case, an opt-in typically appears in class actions or collective actions where each person must actively sign a consent form or file a notice to become a plaintiff. It is a procedural step that requires your affirmative action to participate, as opposed to being automatically included unless you opt out.
If you do not opt in, you generally cannot share in any settlement or judgment from the case, and you may lose the right to sue separately on the same claim later. It forces you to decide early whether you want to be bound by the outcome of the litigation.
Many people confuse opt-in with opt-out, but opt-in requires you to take action to join, while opt-out means you are automatically included unless you actively exclude yourself. In some group lawsuits, you are not part of the case at all unless you opt in.
Get the actual rule
This page explains the concept. When it matters to your case, read the rule that governs it in your court — we hold Texas, federal and Washington court rules word for word, and every state's official resources are on the state pages. If someone cites a case at you, check that it exists first.
Related
General explanation, not legal advice, and not specific to any state — procedures and deadlines vary by jurisdiction and court. If you can get a lawyer or free legal aid, do: every real option.