Align two DNA or protein sequences
Paste two sequences and see where they match, where they differ, and how similar they are.
- Free, no sign-up
- Nothing uploaded
- Text, FASTA or CSV
No sequences handy? Try one:
Have a FASTA file? (one file with both sequences, or drop a file on either box).
How it works
- Paste two sequences. Plain letters or FASTA, from a file or a database page. Numbers and spaces from GenBank-style listings are ignored. The page tells DNA, RNA and protein apart from the letters.
- Pick whole sequences or best matching part. Whole (global, Needleman-Wunsch) for two versions of one gene or protein; best matching part (local, Smith-Waterman) for a primer, a read or a domain inside a longer sequence.
- Read the result. Identity, similarity, gaps and score, a rough reading of how related the pair is, the alignment itself, and every substitution, insertion and deletion with its positions in both sequences.
- Take it with you. Download the alignment as text, aligned FASTA, a CSV of the differences, or copy the CIGAR string.
Questions
- Global or local alignment: which should I use?
- Global lines up the two sequences end to end, for two versions of the same gene or protein. Local finds the best matching stretch, for a short piece such as a primer, a read or a domain inside a longer sequence.
- What do identity and similarity mean?
- Identity counts columns where both letters are the same. Similarity also counts protein pairs that score above zero in BLOSUM62, such as leucine and isoleucine. Both are divided by the alignment length, gaps included, as EMBOSS does.
- Are the numbers the same as EMBOSS needle and water?
- The scoring is the same: BLOSUM62 or NUC.4.4, gap open 10, gap extend 0.5, end gaps free in global mode. The score is the optimum; when several alignments share it, the one shown can place a gap differently, which can move identity by a column or two.
- How long can the sequences be?
- Up to 20,000 letters each, and up to 16 million letter pairs in all (for example 4,000 × 4,000). For whole genomes, use a dedicated aligner on your computer.
- Why check the reverse strand?
- A DNA read or primer can come from either strand. With the box ticked, the page also aligns the reverse complement of sequence 2 and keeps whichever scores higher, and says so.
- Are my sequences uploaded?
- No. The alignment runs inside your browser tab. Only the optional AI step sends the measurements, the alignment and your note, and only when you press its button.