Use EDN Formatter

Enter your data below to use the EDN Formatter

📌 Try these examples:
RESULT

Last updated

What Is EDN?

EDN (Extensible Data Notation) is a data format created by Rich Hickey for the Clojure ecosystem. It's similar to JSON but richer: it supports more data types natively, including keywords, symbols, sets, tagged literals, and arbitrary precision numbers. EDN is used as the data format for Datomic databases, ClojureScript transit, and many Clojure libraries.

EDN vs JSON

FeatureJSONEDN
Strings"hello""hello"
Numbers42, 3.1442, 3.14, 42N (BigInt), 3.14M (BigDecimal)
Booleanstrue, falsetrue, false
Nullnullnil
Arrays[1, 2, 3][1 2 3] (vector)
Objects{"key": "val"}{:key "val"} (map with keyword)
KeywordsNot supported:keyword, :ns/keyword
SetsNot supported#{1 2 3}
CommentsNot supported; line comment
Tagged literalsNot supported#inst "2026-03-22"

EDN Example

EDN
; User record in EDN
{:id 42
 :name "Alice"
 :email "alice@example.com"
 :roles #{:admin :user}
 :created-at #inst "2026-01-15T10:30:00Z"
 :settings {:theme :dark
            :notifications true
            :items-per-page 25}}

Reading EDN in Clojure

Clojure
(require '[clojure.edn :as edn])

; Parse EDN string
(edn/read-string "{:name "Alice" :age 30}")
; => {:name "Alice", :age 30}

; Read from file
(with-open [r (java.io.PushbackReader. (clojure.java.io/reader "data.edn"))]
  (edn/read r))

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.