# Pairwise Alignment > A free pairwise sequence alignment tool that runs in the browser: paste or drop two DNA, RNA or protein sequences and get a global (Needleman-Wunsch) or local (Smith-Waterman) alignment with identity, similarity, gaps, score and every difference listed. https://pairwise-alignment.skillsafe.ai/ ## What it does (free, no sign-in, nothing uploaded) - Input: two sequences as plain letters or FASTA, pasted, or from a .fasta/.txt file (one file with two records, or one per box). Digits, spaces and gap characters are ignored; DNA, RNA or protein is detected from the letters. Up to 20,000 letters each and 16 million letter pairs. - Alignment: global (Needleman-Wunsch with Gotoh affine gaps; end gaps free by default, as EMBOSS needle) or local (Smith-Waterman, as EMBOSS water). Scoring BLOSUM62 for protein, NUC.4.4 (EDNAFULL) for DNA and RNA; gap open 10 and extend 0.5 by default, a gap of length L costing open + (L - 1) x extend. Scores agree with Biopython PairwiseAligner and scikit-bio pair_align on the same settings. - For DNA and RNA the reverse complement of sequence 2 is also aligned, and the better strand is kept and named. - Output: length, identity, similarity (positive matrix score), gaps and score as EMBOSS reports them; identity over the overlap; coverage of each sequence; a rough relationship label (identical, nearly identical, clearly related, grey zone, no clear relationship) with the rule shown; the alignment in 50-100 letter blocks with position numbers; every substitution, insertion, deletion and overhanging end with positions in both sequences. - Exports: alignment as text (EMBOSS-like pair format with a stats header), aligned FASTA, CSV of differences, extended CIGAR string (sequence 1 as reference). ## Optional AI step (signed-in, metered) "Explain the differences with AI" sends the page's measurements, its numbered differences, the alignment text and the visitor's optional note. The model returns a plain-language summary, notes on the differences that matter with an impact (likely minor, worth checking, likely major, unknown), next checks and limits. The page checks that the relationship matches its own, that every difference id exists, and that every percentage is one it measured. - API: https://pairwise-alignment.skillsafe.ai/api.html - Input fields: `task` ("explain"), `kind`, `mode`, `sequences`, `stats` (JSON text), `relationship` (JSON text), `differences` (JSON text), `alignment`, `context`, `clipped_note`. - Output: one JSON object `{relationship, summary, differences: [{id, note, impact}], next_steps: [string], caveats: [string]}`. ## Source Adapted from the agent skill @davila7/scikit-bio from davila7/claude-code-templates (MIT): https://skillsafe.ai/skill/@davila7/scikit-bio . Its sequence alignment section (global Needleman-Wunsch with a semi-global variant, local Smith-Waterman, substitution matrices and gap penalties, CIGAR) is the basis of the page's aligner.