---
schema_version: "1"
id: b00d6141b612070f6bb982fa1f754ec2abbc6f1e9c234493b41d617f5acd7862
title: ascii({char})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-string-ascii.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-string-ascii.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3969889c0cb2a70f5db7d7941ad695b3276d8112c5783af58190297fcb91c0f5
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# ascii({char})

Returns UTF-8 numeric value of the specified character. Returns `null` if `{n}` is `null`.

## Example

This example returns the ASCII value for the letter “a.”

```nolang
SELECT ASCII('C') as "asciiValue"
FROM "Superstore"
LIMIT 1;
```

| asciiValue |
| ---------- |
| 67         |
