With luck, you'll never be trapped in a car with the need to break the window from the inside, but if you are, and you don't have the right tools, your salvation may be right behind your head. Here's how to use your car seat's headrest to break your car door window.
You don't have to speak Japanese to understand what's going on in the video above—it shows you what you need to know in a couple of seconds. Just take your headrest off of the back of the seat, then push one of the pegs from the headrest attachment down into the space where your window retracts, just where the seal is. Jam it down in there a few inches, and then pull the headrest towards you. Doing this flexes the window glass laterally, and the result is a break, usually at the other end of the window. Since it's usually safety glass, it'll shatter and crumble, falling away from the door (although not completely or in several pieces).
This works because automotive glass is built to take significant direct impact, perpendicular to the plane of the glass, but if you flex it or hit it along the edge of the glass, it's much more fragile. This method will work in a pinch or someone else's car, but for your ride, we'd be remiss if we didn't suggest keeping an emergency hammer and seat belt cutter like this one in the glove compartment or under the passenger seat in case of emergency too.
Use a Headrest to Break Your Car Window in Emergency Situations | Lifehack
Break a Car Window with a Headrest in an Emergency