<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIKeyboardType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIKeyboardType"
  },
  "title" : "UIKeyboardType"
}
-->

# UIKeyboardType

Constants that specify the type of keyboard to display for a text-based view.

```
enum UIKeyboardType
```

## Overview

Use these constants with the [`keyboardType`](/documentation/UIKit/UITextInputTraits/keyboardType) property.

## Topics

### Constants

[`UIKeyboardType.default`](/documentation/UIKit/UIKeyboardType/default)

Specifies the default keyboard for the current input method.

[`UIKeyboardType.asciiCapable`](/documentation/UIKit/UIKeyboardType/asciiCapable)

Specifies a keyboard that displays standard ASCII characters.

[`UIKeyboardType.numbersAndPunctuation`](/documentation/UIKit/UIKeyboardType/numbersAndPunctuation)

Specifies the numbers and punctuation keyboard.

[`UIKeyboardType.URL`](/documentation/UIKit/UIKeyboardType/URL)

Specifies a keyboard for URL entry.

[`UIKeyboardType.numberPad`](/documentation/UIKit/UIKeyboardType/numberPad)

Specifies a numeric keypad for PIN entry.

[`UIKeyboardType.phonePad`](/documentation/UIKit/UIKeyboardType/phonePad)

Specifies a keypad for entering telephone numbers.

[`UIKeyboardType.namePhonePad`](/documentation/UIKit/UIKeyboardType/namePhonePad)

Specifies a keypad for entering a person’s name or phone number.

[`UIKeyboardType.emailAddress`](/documentation/UIKit/UIKeyboardType/emailAddress)

Specifies a keyboard for entering email addresses.

[`UIKeyboardType.decimalPad`](/documentation/UIKit/UIKeyboardType/decimalPad)

Specifies a keyboard with numbers and a decimal point.

[`UIKeyboardType.twitter`](/documentation/UIKit/UIKeyboardType/twitter)

Specifies a keyboard for Twitter text entry, with easy access to the at (”`@`”) and hash (”`#`”) characters.

[`UIKeyboardType.webSearch`](/documentation/UIKit/UIKeyboardType/webSearch)

Specifies a keyboard for web search terms and URL entry.

[`UIKeyboardType.asciiCapableNumberPad`](/documentation/UIKit/UIKeyboardType/asciiCapableNumberPad)

Specifies a number pad that outputs only ASCII digits.

[`alphabet`](/documentation/UIKit/UIKeyboardType/alphabet)

Specifies a keyboard for alphabetic entry.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)