# JSON to EDN Converter

Convert JSON data to EDN (Extensible Data Notation) format

> Canonical page: https://elysiatools.com/en/tools/json-to-edn

- **Category:** Format Conversion

- **Keywords:** json, edn, convert, transform, clojure, json to edn

## Overview

The JSON to EDN Converter is a streamlined utility designed to transform standard JSON data structures into EDN (Extensible Data Notation) format, facilitating seamless integration with Clojure and ClojureScript environments.

## Inputs

- **JSON Input** (textarea): Enter your JSON data here...
- **Indent Size** (number): Enter indent size (0-8)

## When to use

- When migrating configuration files from JSON to EDN for Clojure applications.
- When you need to represent complex data structures in a format that supports Clojure-specific types like keywords and symbols.
- When preparing data payloads for interoperability between web services and Clojure-based backends.

## How it works

- Paste your raw JSON data into the input field.
- Adjust the indent size setting to define your preferred output formatting.
- Click the convert button to generate the equivalent EDN representation instantly.

## Use cases

- Standardizing configuration files for Clojure projects.
- Converting API responses into a format compatible with Clojure data processing libraries.
- Refactoring legacy JSON-based data stores into more expressive EDN structures.

## Frequently asked questions

### What is EDN?

EDN (Extensible Data Notation) is a data format used by Clojure to represent data structures, similar to JSON but with support for more types like keywords, symbols, and sets.

### Can I convert large JSON files?

Yes, the tool handles large JSON objects efficiently, provided they are valid JSON syntax.

### Does this tool support custom Clojure types?

The tool converts standard JSON types to their EDN equivalents. Custom Clojure types may require manual adjustment after conversion.

### Is my data stored on your server?

No, all conversion processes occur locally in your browser to ensure your data remains private.

### What happens if my JSON is invalid?

The tool will return an error message indicating the syntax issue, allowing you to correct your JSON before attempting the conversion again.

## Related tools

- [BSON Converter](https://elysiatools.com/en/tools/bson-converter): Encode and decode data to/from BSON (Binary JSON) format
- [CSON to JSON Converter](https://elysiatools.com/en/tools/cson-to-json): Convert CSON (CoffeeScript Object Notation) data to JSON format
- [EDN to JSON Converter](https://elysiatools.com/en/tools/edn-to-json): Convert EDN (Extensible Data Notation) data to JSON format
- [GeoJSON to GPX Converter](https://elysiatools.com/en/tools/geojson-to-gpx): Convert GeoJSON format to GPX (GPS Exchange Format) format
- [GeoJSON to KML Converter](https://elysiatools.com/en/tools/geojson-to-kml): Convert GeoJSON format to KML (Keyhole Markup Language) format
- [GeoJSON to OSM Converter](https://elysiatools.com/en/tools/geojson-to-osm): Convert GeoJSON format to OpenStreetMap (OSM) XML format
- [GPX to GeoJSON Converter](https://elysiatools.com/en/tools/gpx-to-geojson): Convert GPX (GPS Exchange Format) to GeoJSON format
- [GraphQL to JSON Converter](https://elysiatools.com/en/tools/graphql-to-json): Convert GraphQL query or response data to JSON format

## Samples

- [JSON Samples](https://elysiatools.com/en/samples/json): JSON (JavaScript Object Notation) format examples from simple to complex structures
- [Terraform Plan JSON Samples](https://elysiatools.com/en/samples/terraform-plan-json-samples): Sample Terraform plan JSON files exported from terraform show -json style payloads for dependency visualization and change review
- [Chat Transcript JSON Samples](https://elysiatools.com/en/samples/chat-transcript-json): JSON examples for multi-role chat transcripts
- [Rich Media JSON Samples](https://elysiatools.com/en/samples/rich-media-json): JSON examples for popular rich text editors (TipTap, Quill, Slate)

## Related content

- [JSON Normalization and Interchange Workflow](https://elysiatools.com/en/hubs/json-convert): Turn a structured source into a checked JSON representation, then export the exact table, configuration, document, API, XML, CSON, EDN, BSON, or UBJSON form required downstream.
