Converting HTML to Atlassian's Document Format

Atlassian Document Format API Blog

Converting HTML to Atlassian's Document Format

Blog Single
5 min read

Converting HTML to Atlassian’s Document Format

In this blog post we will discuss how to convert HTML to Atlassian’s Document Format (ADF) using the adfapi.dev API.

Introduction

Atlassian’s Document Format (ADF) is a JSON-based format that is used by Atlassian products like Confluence and Jira to represent rich text documents. The format is designed to be easy to read and write, and is used to store and render documents in these products.

How to Convert HTML to ADF

To convert HTML to ADF, you can use the adfapi.dev API. The API takes HTML as input and returns the equivalent ADF as output. Here is an example using curl:

curl -X 'POST' 'https://api.adfapi.dev/api/Html' -H 'accept: text/plain' -H 'Content-Type: text/html' -d '<p>hello world</p>'

You can also try out the API yourself by going to our Try It page. Enter your HTML in the text box, press submit, and you’ll be able to see your document converted to ADF for free.