Claude Sonnet 4 vs GPT-5 Codex

Compare Claude Sonnet 4 by Anthropic against GPT-5 Codex by OpenAI, in 101 community votes, claude sonnet 4 and gpt-5 codex are closely matched, tested across 30 shared challenges. Updated March 2026.

Which is better, Claude Sonnet 4 or GPT-5 Codex?

Claude Sonnet 4 and GPT-5 Codex are closely matched based on 101 community votes. Compare their real outputs side by side below.

Key Differences Between Claude Sonnet 4 and GPT-5 Codex

Claude Sonnet 4 is made by anthropic while GPT-5 Codex is from openai. In community voting, In 101 community votes, Claude Sonnet 4 and GPT-5 Codex are closely matched.

In 101 community votes, Claude Sonnet 4 and GPT-5 Codex are closely matched. Claude Sonnet 4 leads in Image Generation, while GPT-5 Codex leads in Web Design, Reasoning. Based on blind community voting from the Rival open dataset of 101+ human preference judgments for this pair.

Web Design: GPT-5 Codex wins 56% of votes
Image Generation: Claude Sonnet 4 wins 56% of votes
Reasoning: GPT-5 Codex wins 60% of votes
Analysis: Claude Sonnet 4 and GPT-5 Codex are tied
Conversation: Claude Sonnet 4 and GPT-5 Codex are tied
Our Verdict
Claude Sonnet 4
Claude Sonnet 4
GPT-5 Codex
GPT-5 Codex

Too close to call. Pick based on your use case.

Pick Claude Sonnet 4 for Image Generation. Pick GPT-5 Codex for Reasoning, Web Design.

Too close to call
Writing DNA

Style Comparison

Similarity
93%

Claude Sonnet 4 uses 6.4x more sentence length

Claude Sonnet 4
GPT-5 Codex
62%Vocabulary64%
111wSentence Length17w
0.40Hedging0.38
5.0Bold2.3
9.3Lists3.5
0.88Emoji0.15
2.16Headings0.49
0.33Transitions0.05
Based on 17 + 13 text responses
vs

Ask them anything yourself

Claude Sonnet 4GPT-5 Codex
FAQ