Ed25519 Sign & Verify Online | EdDSA Signature Browser

Digital Signatures
100% client-side. Processed locally in your browser using the Web Crypto API. Nothing is sent to any server.
⚠️ Critical Security: Ed25519 is the modern default for SSH, TLS, and secure messaging. Store private keys securely — never expose them in client-side code for production; use HSMs or server-side signing. For post-quantum signatures, consider ML-DSA (FIPS 204).

How It Works

What Is Ed25519 (EdDSA)?

Ed25519 is a modern digital signature scheme based on the EdDSA (Edwards-curve Digital Signature Algorithm) using Curve25519. It produces fixed-size 64-byte signatures with 128-bit security, is deterministic (no random number generator needed during signing), and is resistant to side-channel attacks. Ed25519 is the default signature algorithm for SSH (ssh-ed25519), TLS 1.3, Signal Protocol, and many modern cryptographic systems.

This tool signs messages and verifies Ed25519 signatures entirely in your browser using the audited @noble/curves library. The Ed25519ph variant pre-hashes the message with SHA-512 first, making it ideal for large files and streaming data. Both variants produce 64-byte deterministic signatures.

When to Use Ed25519

  • SSH authentication — Ed25519 is the recommended SSH key type (ssh-ed25519)
  • TLS 1.3 — Ed25519 is one of the default signature algorithms
  • Secure messaging — Signal Protocol uses Ed25519 for message authentication
  • Blockchain / cryptocurrency — Ed25519 is used by Solana, Cardano, and others
  • Code signing — Fast, compact signatures for software packages
  • When NOT to use — For legacy system compatibility, RSA or ECDSA may be required

Variant Comparison

VariantMessage HandlingSignature SizeBest for
Ed25519Direct signing64 bytesGeneral-purpose, SSH, TLS
Ed25519phPre-hashed with SHA-51264 bytesLarge files, streaming data

Standards Compliance

  • RFC 8032 — Edwards-Curve Digital Signature Algorithm (EdDSA)
  • RFC 8446 (TLS 1.3) — Ed25519 as default signature algorithm
  • RFC 8709 — Use of Curve25519 Keys in SSH
  • NIST FIPS 186-5 — Ed25519 approved for federal use
  • @noble/curves — Audited JavaScript implementation

Last updated:

Code Examples

Sign and verify with Ed25519 in multiple languages:

JavaScript — @noble/curves (Browser)

import { ed25519 } from '@noble/curves/ed25519';

// Generate key pair
const privateKey = ed25519.utils.randomPrivateKey();
const publicKey = ed25519.getPublicKey(privateKey);

// Sign
const message = new TextEncoder().encode('message to sign');
const signature = ed25519.sign(message, privateKey);

// Verify
const isValid = ed25519.verify(signature, message, publicKey);
console.log('Signature valid:', isValid);

Python — cryptography library

from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey

private_key = Ed25519PrivateKey.generate()
public_key = private_key.public_key()

# Sign
message = b"message to sign"
signature = private_key.sign(message)

# Verify
public_key.verify(signature, message)
print("Signature valid")

Go — crypto/ed25519

import (
    "crypto/ed25519"
    "crypto/rand"
)

publicKey, privateKey, _ := ed25519.GenerateKey(rand.Reader)

// Sign
message := []byte("message to sign")
signature := ed25519.Sign(privateKey, message)

// Verify
valid := ed25519.Verify(publicKey, message, signature)

Rust — ed25519-dalek

use ed25519_dalek::{SigningKey, VerifyingKey, Signer, Verifier};
use rand::rngs::OsRng;

let signing_key = SigningKey::generate(&mut OsRng);
let verifying_key = VerifyingKey::from(&signing_key);

// Sign
let message = b"message to sign";
let signature = signing_key.sign(message);

// Verify
assert!(verifying_key.verify(message, &signature).is_ok());

Node.js — crypto module

const { generateKeyPairSync, sign, verify } = require('crypto');

const { publicKey, privateKey } = generateKeyPairSync('ed25519');

// Sign
const message = Buffer.from('message to sign');
const signature = sign(null, message, privateKey);

// Verify
const isValid = verify(null, message, publicKey, signature);
console.log('Signature valid:', isValid);

Common Pitfalls

⚠️ Not Protecting Private Keys: Ed25519 private keys are just 32 bytes, but extremely sensitive. Never share them, commit them to version control, or leave them in world-readable files.
⚠️ Data Format Mismatch: Ed25519 signs exact bytes. If you sign text but verify hex (or vice versa), verification will fail. Always use the same data format for signing and verification.
⚠️ Using Ed25519 for Encryption: Ed25519 is for signatures only. For encryption, use X25519 (Curve25519 Diffie-Hellman) or combine with a symmetric cipher like AES-256-GCM.
⚠️ Confusing Ed25519 with Ed25519ph: Ed25519 signs the message directly; Ed25519ph pre-hashes with SHA-512. They produce different signatures for the same message. Use Ed25519ph for large files.
⚠️ Signature Format Confusion: Ed25519 signatures are always 64 bytes. Some tools output them as hex (128 chars), others as Base64 (~88 chars). Ensure you're using the correct format for verification.

Security Notes

ℹ️ Ed25519 Signatures Are Deterministic: Unlike ECDSA, signing the same message twice produces identical signatures. This eliminates the need for a secure random number generator during signing.
ℹ️ 64-Byte Fixed Signatures: Ed25519 signatures are always exactly 64 bytes, regardless of message length. This is much smaller than RSA-2048 signatures (256 bytes).
ℹ️ Side-Channel Resistant: Ed25519's deterministic signing process makes it resistant to timing and side-channel attacks that plague other signature schemes.
ℹ️ Public Key Derivation: The "Derive Pub" button computes the public key from your private key using Curve25519 base point multiplication — no need to keep the original key pair together.

Disclaimer

This tool is provided for educational and development purposes. All signing and verification happens entirely in your browser using the audited @noble/curves library. For high-value production signing, use hardware security modules (HSMs) or dedicated signing services.

Further Reading

Related Concepts

Related Tools

Need ECDSA or RSA signatures? Try the Digital Signature & Verify tool. For post-quantum signatures, see the ML-DSA Sign/Verify tool. You can also generate standalone Ed25519 key pairs with the ECC Key Generator.

Frequently Asked Questions

What key formats does this tool accept?

Private keys: PKCS#8 PEM (-----BEGIN PRIVATE KEY-----) or raw 32-byte hex. Public keys: SPKI PEM (-----BEGIN PUBLIC KEY-----) or raw 32-byte hex. Click the Generate button to create a fresh key pair in PEM format, which you can also use in OpenSSL, SSH, and other tools.

Is it safe to sign data here?

All signing and verification happens entirely in your browser using the audited @noble/curves library. No private key or data ever leaves the page. For development and testing this is perfectly adequate. For high-value production signing — code-signing certificates, financial transactions — use a hardware security module (HSM).

What should I do if verification fails?

Check these in order: (1) Are you using the correct public key that matches the private key used for signing? (2) Is the data byte-for-byte identical — even a single extra newline will break verification? (3) Is the signature in the right format (Hex vs Base64)? (4) Did you select the same data format (Text / Hex / Base64) that was used when signing? Ed25519 signs the exact bytes, so any encoding mismatch will cause failure.

What is the difference between Ed25519 and Ed25519ph?

Ed25519 is the standard pure EdDSA mode — it hashes the message with SHA-512 internally as part of signing. Ed25519ph pre-hashes the message with SHA-512 first, then signs the 64-byte digest — ideal for very large files or streaming data where you hash in chunks. This tool supports both; select the variant using the toggle above the input fields.

How do I derive the public key from my private key?

Paste your Ed25519 private key (PEM or hex) into the Private Key field, then click the "Derive Pub" button next to it. The tool computes the corresponding 32-byte public key using the Curve25519 base point multiplication and fills it into the Public Key field in SPKI PEM format. You can then copy it for sharing or verification — no need to keep the original key pair together.

Privacy: This tool runs entirely in your browser — nothing is uploaded or stored. · Disclaimer: For educational purposes only. Not professional security advice.

More in Signatures

Learn More