What the three segments contain
A JWT is three Base64url segments joined by dots. The header names the signing algorithm in `alg` and often a key identifier in `kid`, which tells the verifier which public key to use. The payload holds the claims - who the token is about, when it expires, what it grants. The signature covers the first two segments and is what makes the token trustworthy.
The header and payload are encoded, not encrypted. Anyone holding the token can read every claim in it, which is why a JWT must never contain anything confidential. Putting a password, an internal database ID you would rather not expose, or personal data beyond what the client already knows into a JWT is the most common design mistake with the format.
The signature is the part that matters for security and it is unreadable by design - it is raw bytes, not text. Seeing gibberish in the third segment is correct.