FASTA to FASTQ Converter
v1.0.0Convert FASTA sequences to FASTQ with configurable mock Phred quality scores.
To convert FASTA to FASTQ, paste records or upload a FASTA file, choose a synthetic quality score profile, and click Convert. The output preserves identifiers and record order, writes sequences in uppercase, and adds one Phred+33 quality character per position. Preview the result, then copy it or download the .fastq file.
For one FASTA record:
>read_1 sample
ACGTNACGTNThe FASTQ output contains the same identifier and sequence, plus a + separator and one quality character per sequence letter:
@read_1 sample
ACGTNACGTN
+
IIIIIIIIIIFor multiple FASTA records, each sequence becomes a separate FASTQ record. With the default Q40 profile, this input:
>read_1
ACGTACGT
>read_2
TTGGAACCproduces:
@read_1
ACGTACGT
+
IIIIIIII
@read_2
TTGGAACC
+
IIIIIIIIFASTA does not store base-call confidence, so generated scores are synthetic. They are useful for examples and pipeline tests but cannot replace measured sequencing quality. Keep the original FASTQ when real scores matter. Assigning Q40 does not establish that a sequence is accurate.
| Input | Description |
|---|---|
FASTA input | One or more records with a nonempty >identifier header and sequence lines below it. Paste text or upload .fasta, .fa, .fas, .seq, or .txt. Maximum file size: 100 MB. |
| Document uploads | .docx and text-based .pdf files are read as text. The extracted text must still contain FASTA records. Scanned PDFs without selectable text need transcription first. |
| Sequence alphabet | DNA and RNA ambiguity letters and one-letter protein codes are accepted. Existing gap, stop, and separator symbols (-, ., *, |) are preserved and receive quality characters. Downstream sequencing tools may require only A, C, G, T, and N. |
Wrapped sequence lines, spaces, tabs, non-breaking spaces, and invisible document formatting are removed before conversion. Full lines beginning with # are ignored as comments. Headers keep their descriptions; duplicate identifiers stay in source order.
Text before the first header and empty identifiers cause an error. Empty records and records with digits or invalid punctuation are skipped with warnings and included in the skipped count. Digits are never removed to rescue a record. If every record is invalid, conversion fails and explains what to correct.
| Setting | Description |
|---|---|
Score generation method | Default: High quality (Q40 - excellent). Other options: Medium quality (Q20 - good), Low quality (Q10 - fair), Custom quality score, Random scores (Q0-Q40), and Declining quality (Q40 to Q10). Every option generates synthetic scores. |
Quality score value (Q0-Q40) | Shown only for Custom quality score. Default: Q30. Enter a whole number from 0 to 40. Missing saved values use Q30; malformed and non-finite values fail. Older saved integer values outside the range are clamped with a warning. |
Preview opens first with a line showing converted records, total length, skipped records, and synthetic encoding. Files contains the FASTQ, conversion summary, and run.log; Logs shows the same downloadable log. Uploaded files retain their basename, for example reads.fa becomes reads.fastq and reads-summary.txt. Pasted input uses converted.fastq and converted-summary.txt.
| Output | Description |
|---|---|
| FASTQ file | Converted FASTQ records for valid input sequences. |
| Conversion summary | Counts every FASTA record, converted records, skipped records, total bases or residues, rounded average converted sequence length, selected score mode, and uniform Q value when applicable. |
| FASTQ preview | Rendered FASTQ text for quick inspection before copying or downloading. |
| Run log | Records the encoding, score profile, record counts, and numbers of removed formatting characters and ignored comment lines. It does not contain sequence content or record descriptions. |
| Warnings | Notes that quality scores are synthetic and names up to 20 skipped records, followed by an additional count if needed. Clamped saved scores also produce a warning. Routine whitespace cleanup appears in the log. |
FASTA records contain a header line that starts with > followed by one or more sequence lines. FASTQ records contain four logical sections:
@ and contains the FASTA header without the leading >.+ line.ProteinIQ reads each FASTA record, preserves the header description, joins sequence lines, validates the sequence, and generates a quality string with the selected profile. Empty and invalid records are omitted with visible warnings. A sequence written on the header line, such as >read ACGT, is a header description, not an inline sequence.
The converter uses Phred+33 encoding: each numeric score becomes an ASCII character with code Q + 33. This follows the Sanger FASTQ convention described by Cock and colleagues. The NCBI SRA format guide also requires sequence and quality strings to have equal lengths. The probabilities below describe Phred scores, not measured confidence in these synthetic records.
| Phred score | Error probability | Accuracy | Phred+33 character |
|---|---|---|---|
| Q10 | 1 in 10 | 90% | + |
| Q20 | 1 in 100 | 99% | 5 |
| Q30 | 1 in 1,000 | 99.9% | ? |
| Q40 | 1 in 10,000 | 99.99% | I |
Quality score selection controls how downstream FASTQ-aware tools interpret confidence. The sequence text does not change, but quality-aware filters, trimmers, aligners, and variant workflows may behave differently.
| Profile | Generated scores | Use when |
|---|---|---|
High quality (Q40) | Q40 at every position | Reference sequences, synthetic constructs, and tests where reads should pass quality filters. |
Medium quality (Q20) | Q20 at every position | Standard threshold-style test data. |
Low quality (Q10) | Q10 at every position | Testing low-quality read handling or quality filters. |
Custom quality score | Selected Q0-Q40 score at every position | Controlled benchmarks that need a specific uniform score. |
Random scores (Q0-Q40) | Uniform random integer at each position; varies between runs | Testing tools that respond to per-position quality variation. |
Declining quality (Q40 to Q10) | Rounded linear decline from Q40 to Q10 for each record; a one-position sequence receives Q40 | Testing lower quality near the end of each read. |
For Declining quality (Q40 to Q10), the input >read_1 followed by ACGT produces scores Q40, Q30, Q20, and Q10:
@read_1
ACGT
+
I?5+FASTQ output is strict because sequence and quality lengths must match exactly.
@, followed by the FASTA header without the leading >.+.Use FASTA to FASTQ when the sequence is already in FASTA format and a downstream tool requires FASTQ input. Use a different converter when the source file already has quality scores or needs sequence cleanup first.
| Input format | Best converter | Use when |
|---|---|---|
| FASTA sequences needing FASTQ | FASTA to FASTQ | You need synthetic quality strings for FASTA records. |
| FASTQ sequencing reads | FASTQ to FASTA | You need to remove quality-score lines from read data. |
| TXT or pasted sequence text | TXT to FASTA | You have raw DNA, RNA, or protein text without FASTA headers. |
| CSV or spreadsheet-like text | CSV to FASTA | Sequence IDs and sequences are stored in columns. |
| Generated nucleotide sequences | Random DNA or Random RNA | You need synthetic sequence content before converting or testing. |
| FASTA records for a spreadsheet | FASTA to CSV | You need IDs, descriptions, and lengths as table columns. |
Upload the .fasta, .fa, or .fas file, choose a score generation method, and run the converter. The result can be copied or downloaded as a .fastq file.
No. FASTA does not contain per-base quality scores. This converter generates synthetic quality strings so FASTA sequences can be used with tools that require FASTQ input.
Use High quality (Q40) for reference sequences, designed sequences, and compatibility testing. Use Declining quality (Q40 to Q10) or Random scores (Q0-Q40) when testing quality trimming, filtering, or quality-aware algorithms.
Yes, within the tool's input limits. Each valid FASTA record becomes one FASTQ record. Empty and invalid records count as skipped in the summary and produce warnings.
The record had no sequence lines or contained an invalid character, such as a digit or an inline comment. Put sequence letters on lines below the header and put # comments on their own lines. Numbered database exports need cleanup before conversion; no bases are inferred from the numbers.
Use FASTA to FASTQ when the input already has FASTA headers that start with >. Use TXT to FASTA for raw sequence text copied from notes, reports, or plain text files.
Convert FASTQ sequencing reads to FASTA while preserving headers and sequence case by default.
Convert CSV or TSV sequence tables to FASTA with automatic delimiter detection and column mapping.
Paste or upload a sequence file in any common format and download FASTA. The format is detected automatically, and nothing leaves your browser.
Convert GenBank records to FASTA by extracting primary sequences, CDS, or translations.
Paste or upload DNA, RNA, or protein text and download FASTA. Sequence names, wrapped lines, and tables are detected automatically, and nothing leaves your browser.
Convert coding-strand DNA to RNA notation by replacing thymine with uracil.
Generate reverse, complement, or reverse-complement sequences from raw, FASTA, or FASTQ DNA and RNA input.
Replace U with T while keeping the same strand orientation. Paste RNA or upload a sequence file.
Extract CDS, mRNA, gene, rRNA, and tRNA features from GenBank records into FASTA.
Paste or upload FASTA and download a CSV or TSV table for spreadsheets, or a plain text file with one sequence per line.