.clj
💻 CodeText-based

.clj File — Clojure Source Code

text/x-clojure

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

CLJ

Drop a .clj file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/x-clojure

Quick Facts

Extension.clj
Full NameClojure Source Code
MIME Typetext/x-clojure
CategoryCode
TypeText-based (human-readable)
Typical Size1 KB – 30 KB
First Appeared2007

What Is a .clj File?

Clojure is a dynamic, functional programming language created by Rich Hickey in 2007 that runs on the Java Virtual Machine. CLJ files contain source code in a modern Lisp dialect designed for practical concurrent programming. Clojure emphasizes immutable data structures (persistent vectors, maps, and sets implemented with structural sharing for efficiency), first-class functions, lazy sequences, and a sophisticated state management model with atoms, refs, and agents for different concurrency patterns. The language's homoiconic syntax (code is data, data is code) enables powerful metaprogramming through macros. Clojure interoperates seamlessly with Java, providing access to the entire Java ecosystem. ClojureScript compiles Clojure to JavaScript for frontend development, often paired with React through the Reagent or Re-frame libraries. The language is used in financial services (Nubank, the world's largest digital bank), data processing, and full-stack web development. Core.async provides CSP-style concurrency (Go channels), and the spec library enables runtime data validation and generative testing. Clojure's philosophy prioritizes simplicity and data-oriented programming.

How to Open .clj Files

VS Code (with Calva)
IntelliJ (with Cursive)
Emacs (with CIDER)
vim
any text editor

Related File Extensions

More Code File Extensions

Other code formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.