EIP-712 is an Ethereum Improvement Proposal that defines a standard way to sign structured data, such as an order or an approval, rather than a meaningless string of characters. The data is described with named fields and types, and is combined with a "domain separator" that names the application, its version, the chain ID and the contract that will check it. This lets a wallet such as MetaMask show the user what is being signed and stops a signature made for one application or chain from being reused on another, a kind of replay attack.
EIP-712 signatures are made off-chain, cost no gas and can be submitted to a contract later. Uses include off-chain order books, voting and gasless approvals, including the ERC-2612 "permit" extension to ERC-20 tokens. The same power creates risk: phishing sites trick users into signing permits that let attackers move their tokens, so signing a message can be as dangerous as sending a transaction.
Ref 1070001158