This paper proposes an improved DNA sequence compression algorithm based on differential direct coding and a variable length lookup table. The proposed algorithm aims to achieve better compression than existing algorithms by using extended DNA alphabets and assigning ASCII codes to represent combinations of nucleotide doubles and multiples of doubles stored in fixed and variable length lookup tables. Experimental results on 10 DNA sequences show that the proposed algorithm achieves around 70% compression on average, compared to 68% for previous algorithms, demonstrating better compression performance.