Google announced its newest smartphones on Wednesday, the Pixel 2 and Pixel 2 XL. 

The devices come with stellar cameras and support augmented reality. Googles announcement comes a few weeks after Apple announced the iPhone 8 and iPhone X.

Here's how the three smartphones compare.

Pixel 2 Vs. iPhone 8 Vs. iPhone X: Display

The Pixel 2 has a 5-inch OLED display, while the Pixel 2 XL comes with a 6-inch OLED display. The devices come with an all-aluminum body. The Pixel 2 XL comes with an 18x9 resolution, while the Pixel 2 has a 16x9 resolution. The Pixel 2 comes in three colors, white black and blue, while the Pixel 2 XL comes in white and black. The Pixel 2 comes with a fingerprint sensor on the back of the screen and “unlocks faster than any other smartphone,” Google said. 

Google’s quick search box is now at the bottom of the screen for better reachability. The devices also come with an Active Edge feature, which means users can just squeeze the phone to ask a question.

The iPhone X features a 5.8-inch edge-to-edge Super Retina display with OLED technology. Unlike the iPhone 8 models, the iPhone X does not include the Touch ID button. The screen offers a higher contrast and a 2436x1125 resolution.

The 4.7-inch iPhone 8 and 5.5-inch iPhone 8 Plus come with a Retina display that offers better color accuracy than previous iPhone models and a wide cinema quality color.

Pixel 2 Vs. iPhone 8 Vs. iPhone X: Camera

The camera on the Pixel 2 has improved, with a DXOMark unprecedented score of 98, beating out other smartphones. Google said it increased the dynamic range on the camera this year. Pixel 2’s camera also comes with Portrait Mode, which blurs out the background to focus on the subject. Portrait selfies can be taken with the front camera with both the Pixel 2 and Pixel 2 XL.

The Pixel 2 camera also supports augmented reality. The devices also come with Google Lens, a feature that gives users data on objects in front of them, like book reviews, information on products and even flyers on the street.

The iPhone 8 has a single camera on the back, while the iPhone 8 Plus sports a horizontal dual-camera system. The devices take better slow-motion footage than the iPhone 7 and includes the new Portrait Lighting feature, which brings studio lighting effects to the iPhones.

The 10th anniversary iPhone features a vertical dual-camera system on the back. The device also includes Portrait Lighting. The iPhone X, like the iPhone 8, features a video encoder that enables faster frames for better quality and compression.

Pixel 2 Vs. iPhone 8 Vs. iPhone X: Features

Pixel 2 and Pixel 2 XL AR Stickers

The devices support AR stickers, so users can express themselves with playful emojis. The AR stickers are seen in real-time in real environments.

Pixel 2 and Pixel 2 XL Features

Both devices get seven hours of battery in just a 15 minute charge. The smartphones are both waterproof.

Pixel 2 and Pixel 2 XL Price, Release Date

The Pixel 2 will start at $649 Pixel, while the Pixel 2XL is priced at $849. Both phones are available for pre-order today.

iPhone 8 Price

The 64GB iPhone 8 and 256GB models start at $699, while the iPhone 8 Plus starts at $799. The devices are currently available in stores and online.

iPhone X Face ID

The biggest difference between the iPhone 8 and iPhone X is the Face ID feature. With the iPhone X, Face ID works to unlock the device, Apple Pay transactions and with other third-party app options.

iPhone X Animoji

The iPhone X includes a new feature: Animoji, which are customized animated emoji. Users will be able to pick from dozens of animated Animoji to express their emotions on iMessage through their device’s Face ID camera.

iPhone X Price and Release Date

The iPhone will be offered in 64GB and 256GB starting at $999. Pre-orders for the device begin on Oct. 27 and start shipping on Nov. 3.

Features The iPhone 8 and iPhone X Both Have

The three 2017 iPhones feature wireless charging capabilities. The device can be wirelessly charged with separately-sold charging pads from Belkin and mophie, available on apple.com and Apple Stores at $59.95.

The iPhone 8, 8 Plus and iPhone X all support augmented reality apps with iOS 11, and all feature a glass front and back.