Why an Ed25519 public key is 44 bytes and an RSA one is 294
The quickest way to see why elliptic curves took over from RSA for signatures is to make one key of each kind and count the bytes. We did exactly that and checked the numbers in Node. A 2048-bit RSA public key in SPKI form is 294 bytes. A P-256 public key is 91 bytes. A P-384 key is 120 bytes. An Ed25519 key is 44 bytes. The P-256 and Ed25519 keys are the stronger two of those four.
Strength is measured in "bits of security": roughly, how many operations the best known attack needs, as a power of two. P-256 and Ed25519 both give about 128 bits. P-384 gives about 192. RSA needs a 3072-bit modulus to reach 128 bits, and 2048-bit RSA sits at about 112. So for the same strength an RSA-3072 public key is over 400 bytes, while the Ed25519 key that matches it is 44.
Those 44 bytes are mostly the key itself. The first 12 bytes, which always Base64 to MCowBQYDK2VwAyEA, are the wrapper: a sequence, the identifier 1.3.101.112 that names Ed25519, and a header saying 32 bytes follow. The last 32 bytes are the public key. A P-256 key carries more wrapper (two identifiers, one for "elliptic curve" and one for the curve) and then 65 bytes for the point: a 04 byte meaning "uncompressed", then the 32-byte x and the 32-byte y. That is the 91. The same two numbers appear in the JWK as "x" and "y", in Base64url.
Signatures follow the same pattern. A P-256 signature is 64 bytes, the two 32-byte numbers r and s side by side, which is also the exact form ES256 JWTs use. A P-384 signature is 96 bytes. An Ed25519 signature is 64 bytes. An RSA-2048 signature is 256 bytes, and signing with RSA is much slower, because the private operation works on numbers eight times longer.
The private side tells a similar story. A P-256 private key in PKCS#8 is 138 bytes, and an Ed25519 one is 48, of which 32 bytes are the random seed. In the JWK the private value is "d". That one field is the whole secret: anyone with "d" can sign as you, which is why the page shows the public JWK separately and why you should check which one you are pasting.
Small keys are not the only reason to pick a curve, and not every system takes every curve. P-256 is supported almost everywhere, from TLS certificates to cloud key stores. Ed25519 is newer in browsers and in some enterprise software, so check before you build on it. And none of these keys is useful for SSH as written here, because SSH has its own file format; the SSH Key Generator writes that one.