Code that stays clean, readable, and reliable.

Whether you are learning to program or building mission-critical software, Clean Language helps you write code that is simple, predictable, and easy to maintain.

hello.cln
start:
    string name = "World"
    print "Hello, {name}!"
    // Output: Hello, World!
WHY CLEAN LANGUAGE

Built for Modern Development

Clean Language combines the best features of modern programming languages with the safety and performance you need.

Clean & Simple

Readable, indentation-based syntax designed to reduce noise and keep focus on logic.

Beginner-Friendly

Perfect for students, educators, and anyone learning programming for the first time.

Fast to Learn

Minimal syntax and consistent rules mean a gentle learning curve.

Safe & Predictable

Strong typing and clear semantics ensure fewer surprises and more reliable code.

WebAssembly Ready

Compile to WebAssembly and run on modern platforms everywhere.

Full-Stack Framework

Build complete web applications with the Frame plugin ecosystem.

CODE PREVIEW

Clean Syntax, Powerful Features

Write expressive code with modern syntax and compile to WebAssembly.

server.cln
plugins:
    frame.httpserver
    frame.data

start:
    integer s = _http_route("GET", "/hello", 0)
    s = _http_listen(3000)

functions:
    string __route_handler_0()
        string name = _req_query("name")
        if name == ""
            name = "World"
        string greeting = "Hello, {name}!"
        return _http_respond(200, "application/json", greeting)
Output
$ cln compile --plugins -o server.wasm server.cln
$ cln run server.wasm
Server listening on port 3000

$ curl localhost:3000/hello?name=Clean
Hello, Clean!
AI INTEGRATION

Built for AI Development

Clean Language provides seamless integration with AI tools and frameworks.

AI Understands Your Code

Built-in intent and spec keywords give AI context about what your code does and why it exists.

functions:
    number calculateDiscount(number price, number pct)
        intent "Calculate percentage discount"
        spec "specs/pricing.spec.cln"
        return price * (pct / 100)

Real-Time Compiler Access

MCP server lets AI tools compile, check, and validate code as they write it. Errors caught before you even see them.

$ cln mcp-server

// AI tools can:
//   check types in real-time
//   compile to WebAssembly
//   lint and format code
//   scaffold full projects

Zero Configuration

Plugin auto-detection means AI-generated code just works. Put a file in the right folder and the compiler knows what to do.

/api/     → HTTP routes
/data/    → Database models
/auth/    → Authentication
/ui/      → UI components
GET STARTED

Start Building Today

Get up and running with Clean Language in minutes.

1

Install Clean

One command with the Clean Version Manager.

curl -fsSL https://raw.githubusercontent.com/Ivan-Pasco/clean-language-manager/main/install.sh | sh
2

Write Your First File

Create hello.cln with a simple start: block.

start:
    print "Hello, World!"
3

Run It

See your first output in seconds.

cln compile -o hello.wasm hello.cln
cln run hello.wasm