Let ES(n) be the minimal integer such that any set of ES(n) points in the plane in general position contains n points in convex position. The problem of estimating ES(n) was first formulated by Erd\H{o}s and Szekeres, who proved that ES(n)≤(n−22n−4)+1. The current best upper bound, limsupn→∞(n−22n−5)ES(n)≤3229, is due to Vlachos. We improve this to limn→∞sup(n−22n−5)ES(n)≤87.