Raw capture โ raw/cel.md
url: https://cel.dev/ title: Common Expression Language (CEL) author: Google date_fetched: 2026-07-18 date_published: unknown
CEL is an expression language that's fast, portable, and safe to execute in performance-critical applications. It is designed to be embedded inside larger applications, supporting application-specific extensions. Google is the creator and steward โ the spec lives at github.com/google/cel-spec.
CEL is described as "an expression language that's fast, portable, and safe to execute in performance-critical applications." It is designed to be embedded inside larger applications, supporting application-specific extensions.
The page shows four code examples:
'tacocat'.startsWith('taco')account.balance >= transaction.withdrawal{'sub': '12345678', 'aud': 'example2.cel.dev', 'iss': 'https://...'}common.GeoPoint{ latitude: 10.0, longitude: -5.5 }| Feature | Description |
|---|---|
| Fast | "Accelerated expression evaluation in performance-critical paths from nanoseconds to microseconds." |
| Portable | "Developer friendly, light weight with common syntax across multiple Google and external systems." |
| Extensible | Supports subsetting and extension; easy to embed and tailor to configuration and policy needs. |
| Safe | Non-Turing complete; "only accesses data provided by the host application." |
CEL is recommended for: - List filters for API calls - Validation constraints on protocol buffers - Authorization rules for API requests
The page explains that CEL is "especially useful for predicate logic and simple data transformations." It is most efficient when expressions are "evaluated frequently, but modified infrequently." A key example: evaluating an HTTP request against a security policy โ "a one-time configuration cost for validating the expression" followed by frequent evaluation at negligible cost.
Evaluations complete in the nanoseconds to microseconds range with predictable costs, making it suitable for performance-critical paths.
The project is open source. The page invites contributions to "our open source code and documentation" via GitHub.