GPT-5 Codex vs Claude Sonnet 4

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

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

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

Key Differences Between GPT-5 Codex and Claude Sonnet 4

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

In 101 community votes, GPT-5 Codex and Claude Sonnet 4 are closely matched. GPT-5 Codex leads in Web Design, Reasoning, while Claude Sonnet 4 leads in Image Generation. 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: GPT-5 Codex and Claude Sonnet 4 are tied
Conversation: GPT-5 Codex and Claude Sonnet 4 are tied
Our Verdict
GPT-5 Codex
GPT-5 Codex
Claude Sonnet 4
Claude Sonnet 4

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

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

Too close to call
Writing DNA

Style Comparison

Similarity
93%

Claude Sonnet 4 uses 6.4x more sentence length

GPT-5 Codex
Claude Sonnet 4
64%Vocabulary62%
17wSentence Length111w
0.38Hedging0.40
2.3Bold5.0
3.5Lists9.3
0.15Emoji0.88
0.49Headings2.16
0.05Transitions0.33
Based on 13 + 17 text responses
vs

Ask them anything yourself

GPT-5 CodexClaude Sonnet 4

279 AI models invented the same fake scientist.

We read every word. 250 models. 2.14 million words. This is what we found.

AI Hallucination Index 2026
Free preview13 of 58 slides
FAQ

Common questions