---
title: toUpperCase – ฟังก์ชันแปลงเป็นตัวใหญ่
url: https://www.thepexcel.com/functions/n8n/string-functions/to-upper-case-n8n/
type: function-explainer
program: n8n
syntax: toUpperCase(text)
date: 2025-12-16
updated: 2025-12-17
scores:
  popularity: 8
  difficulty: 1
  usefulness: 8
---

# toUpperCase – ฟังก์ชันแปลงเป็นตัวใหญ่

> แปลงเป็นตัวใหญ่

## คำอธิบาย

toUpperCase แปลงข้อความทั้งหมดเป็นตัวใหญ่

## Syntax

```excel
toUpperCase(text)
```

## เคสการใช้งาน

### Scenario 1

General usage

_เหมาะกับ:_ general

## ตัวอย่าง

### 1. ตัวอย่างที่ 1

```excel
{{ toUpperCase('hello world') }}
```

**ผลลัพธ์:** `HELLO WORLD`

แปลงทั้งหมดเป็นตัวใหญ่

### 2. ตัวอย่างที่ 2

```excel
{{ toUpperCase($json.code) }}
```

**ผลลัพธ์:** `CODE123`

แปลงรหัส

### 3. ตัวอย่างที่ 3

```excel
{{ $json.items.map(i => toUpperCase(i.name)) }}
```

**ผลลัพธ์:** `[ITEM1, ITEM2]`

แปลงชื่อสินค้า

## หมายเหตุเพิ่มเติม

⚠️ ฟังก์ชัน to-upper-case() ใช้สำหรับจัดการข้อมูล

## คำถามที่พบบ่อย

**Q: ใช้ to-upper-case() เมื่อไหร่?**

ใช้ในการจัดการข้อมูลตามที่อธิบายไว้

## ฟังก์ชันที่เกี่ยวข้อง

- [map – แปลงแต่ละรายการในอาร์เรย์ (transform elements)](https://www.thepexcel.com/functions/n8n/array-functions/map-n8n/)

## แหล่งข้อมูลเพิ่มเติม

- [n8n Expressions: to-upper-case Function](https://docs.n8n.io/code/expressions/) _(documentation)_

---

_Source: [https://www.thepexcel.com/functions/n8n/string-functions/to-upper-case-n8n/](https://www.thepexcel.com/functions/n8n/string-functions/to-upper-case-n8n/)_
