The relationship between the structure of peptides LR5 (LHKFR) and YR6 (YGLYPR) and their antioxidant and anti-inflammatory activity remains unclear. Herein, leucine, tyrosine, proline, and phenylalanine at different positions in the peptides were replaced by Alanine (Ala), and two new pentapeptides (AR5 and LAR5) and four hexapeptides (AGR6, YAR6, YLR6, and YGR6) were obtained. The effect of Ala replacement on the hydrophobicity, cytotoxicity, NO inhibition rate, and active oxygen radical scavenging ability of these peptides and their antioxidant and anti-inflammatory abilities were investigated. The results indicated that the hydrophobicity of the peptides was associated with their amino acid composition and their specific sequence. However, hydrophobicity had no significant effect on cytotoxicity. Ala replacement was shown to enhance hydrophobicity and consequently increased the antioxidant and anti-inflammatory activity of the peptides. The molecular docking studies indicated that the amino acid interactions of the peptide with the Keap1 protein influenced the hydrophobicity and thus affected the antioxidant activity of the peptide.